Browse Source

os2: fix leak in dir_windows

Laytan Laats 9 months ago
parent
commit
b3c2f5cb12
1 changed files with 1 additions and 0 deletions
  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)
 }