]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixing free const char** filenamesTable
authorAhmed Abdellah <ahmedabdellah@fb.com>
Thu, 24 Oct 2019 19:54:40 +0000 (20:54 +0100)
committerAhmed Abdellah <ahmedabdellah@fb.com>
Thu, 24 Oct 2019 19:54:40 +0000 (20:54 +0100)
programs/util.c

index 1a20298261281bb3b79447a7ce288d7ecbe6616a..d86b7c2234de5edee969d05c298d8243f1eee6ac 100644 (file)
@@ -305,7 +305,7 @@ UTIL_createFileNamesTable(const char** filenames, char* buf, size_t tableSize){
 void UTIL_freeFileNamesTable(FileNamesTable* table) {
   if(table) {
     if(table->fileNames) {
-      free(table->fileNames);
+      free((void*)table->fileNames);
     }
 
     if(table && table->buf) {