summaryrefslogtreecommitdiffstats
path: root/programs/util.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-07-01 09:27:43 (GMT)
committerYann Collet <cyan@fb.com>2022-07-01 09:55:47 (GMT)
commit49e63cd52202b1bbda2dc97309eb2e25a3677983 (patch)
tree8103fc0c693c3f209508d49b3292bd6234b36f26 /programs/util.h
parent149644df49ba112daeff85f0bed229253516cc8c (diff)
downloadlz4-49e63cd52202b1bbda2dc97309eb2e25a3677983.zip
lz4-49e63cd52202b1bbda2dc97309eb2e25a3677983.tar.gz
lz4-49e63cd52202b1bbda2dc97309eb2e25a3677983.tar.bz2
fixed minor leak
Diffstat (limited to 'programs/util.h')
-rw-r--r--programs/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/util.h b/programs/util.h
index 99bcca9..3192ddc 100644
--- a/programs/util.h
+++ b/programs/util.h
@@ -685,8 +685,8 @@ UTIL_createFileList(const char** inputNames, unsigned inputNamesNb,
UTIL_STATIC void
UTIL_freeFileList(const char** filenameTable, char* allocatedBuffer)
{
- if (allocatedBuffer) free(allocatedBuffer);
- if (filenameTable) free((void*)filenameTable);
+ free(allocatedBuffer);
+ free((void*)filenameTable);
}