diff --git a/programs/util.c b/programs/util.c index 6190bca5027..fb77d178392 100644 --- a/programs/util.c +++ b/programs/util.c @@ -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; }