Skip to content

Commit 524d5bb

Browse files
committed
Fix directory handle leak in posixfilewrapper
1 parent 8eb8a33 commit 524d5bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/foundation/io/posix/posixfswrapper.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ PosixFSWrapper::ListFiles(const String& dirPath, const String& pattern)
437437
fileList.Append(result->d_name);
438438
}
439439
} while (result != nullptr);
440+
closedir(dir);
440441
}
441442
return fileList;
442443
}

0 commit comments

Comments
 (0)