]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
memory leak fix 1701/head
authorLeeYoung624 <liyiang@hotmail.com>
Thu, 25 Jul 2019 13:07:57 +0000 (21:07 +0800)
committerLeeYoung624 <liyiang@hotmail.com>
Thu, 25 Jul 2019 13:07:57 +0000 (21:07 +0800)
programs/util.c

index 6190bca50270e50030431a03063c2c40e722ca76..fb77d17839281413e26b4b7f3a016e7662455cef 100644 (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;
         }