diff options
author | Yann Collet <cyan@fb.com> | 2022-07-01 09:27:43 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2022-07-01 09:55:47 (GMT) |
commit | 49e63cd52202b1bbda2dc97309eb2e25a3677983 (patch) | |
tree | 8103fc0c693c3f209508d49b3292bd6234b36f26 /programs/util.h | |
parent | 149644df49ba112daeff85f0bed229253516cc8c (diff) | |
download | lz4-49e63cd52202b1bbda2dc97309eb2e25a3677983.zip lz4-49e63cd52202b1bbda2dc97309eb2e25a3677983.tar.gz lz4-49e63cd52202b1bbda2dc97309eb2e25a3677983.tar.bz2 |
fixed minor leak
Diffstat (limited to 'programs/util.h')
-rw-r--r-- | programs/util.h | 4 |
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); } |