[windows] Fix leak in glob.

This commit is contained in:
Jeroen van Rijn committed 2022-03-29 16:13:17 +02:00
1 parent 085fa199ea
commit df32b5b46c
7 files changed
+23 -16

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ read_dir :: proc(fd: Handle, n: int, allocator := context.allocator) -> (fi: []F
wpath_search[len(wpath)+2] = 0
path := cleanpath_from_buf(wpath)
defer delete(path)
find_data := &win32.WIN32_FIND_DATAW{}
find_handle := win32.FindFirstFileW(raw_data(wpath_search), find_data)