os2: fix leak in dir_windows

This commit is contained in:
Laytan Laats authored and flysand7 committed 2024-12-01 11:54:54 +11:00
1 parent f8ba86e0a6
commit 0c64129aad
1 file changed
+1
+1
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)
}