os2: fix leak in dir_windows

This commit is contained in:
Laytan Laats
2024-11-15 20:47:34 +01:00
parent 2af014b960
commit b3c2f5cb12

View File

@@ -137,5 +137,6 @@ _read_directory_iterator_destroy :: proc(it: ^Read_Directory_Iterator) {
return
}
file_info_delete(it.impl.prev_fi, file_allocator())
delete(it.impl.path, file_allocator())
win32.FindClose(it.impl.find_handle)
}