diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-11-15 20:47:34 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-11-15 20:47:34 +0100 |
| commit | b3c2f5cb123200767cbdffabf797764f3080ea1f (patch) | |
| tree | 429ac68b694ab8dc4a60de6c2d42122e3e8bddf2 | |
| parent | 2af014b9608f7dd992ffda0fcdb2c2b790637aff (diff) | |
os2: fix leak in dir_windows
| -rw-r--r-- | core/os/os2/dir_windows.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/os2/dir_windows.odin b/core/os/os2/dir_windows.odin index 09990aeec..7b53e476e 100644 --- a/core/os/os2/dir_windows.odin +++ b/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) } |