Fix several locations with potential memory leak
This commit is contained in:
1 parent
f9938c217d
commit
de8d9e8914
6 files changed
+162
-71
No files matched your search
@@ -928,6 +928,7 @@ static int UTIL_prepareFileList(const char* dirName,
|
||||
hFile=FindFirstFileA(path, &cFile);
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
UTIL_DISPLAYLEVEL(1, "Cannot open directory '%s'\n", dirName);
|
||||
free(path);
|
||||
return 0;
|
||||
}
|
||||
free(path);
|
||||
|
||||
Reference in new issue
Block a user