Browse Source

os2: fix leak in dir_windows

Laytan Laats 10 tháng trước cách đây
mục cha
commit
0c64129aad
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      core/os/os2/dir_windows.odin

+ 1 - 0
core/os/os2/dir_windows.odin

@@ -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)
 }