mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Merge pull request #4397 from xiaoge1001/free
Fix several locations with potential memory leak
This commit is contained in:
commit
39c091bc9e
6 changed files with 162 additions and 71 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue