commit | 93febe672a943ed1cb4391fa451c3721e1498335 | [log] [tgz] |
---|---|---|
author | Glenn L McGrath <bug1@ihug.co.nz> | Wed Jul 11 07:25:01 2001 +0000 |
committer | Glenn L McGrath <bug1@ihug.co.nz> | Wed Jul 11 07:25:01 2001 +0000 |
tree | 241ea6e4e8a752cb32bfbb18628ec7aff349e486 | |
parent | c59fa37d4083861a5766da71e4d905565479f7a2 [diff] [blame] |
free coniditionally, just to make it play nice with dmalloc which is incompatable with standard free()
diff --git a/libbb/unzip.c b/libbb/unzip.c index b85eb99..23bf6c7 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c
@@ -1024,6 +1024,10 @@ if (waitpid(gunzip_pid, NULL, 0) == -1) { printf("Couldnt wait ?"); } - free(window); - free(crc_table); + if (window) { + free(window); + } + if (crc_table) { + free(crc_table); + } }