memory leak fix

This commit is contained in:
LeeYoung624 2019-07-25 21:07:57 +08:00
parent 2314906b68
commit 793b94b354

View File

@ -245,6 +245,7 @@ int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char
if (!followLinks && UTIL_isLink(path)) {
UTIL_DISPLAYLEVEL(2, "Warning : %s is a symbolic link, ignoring\n", path);
free(path);
continue;
}