diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/unzip.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libbb/unzip.c b/libbb/unzip.c index b85eb9981..23bf6c73c 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c @@ -1024,6 +1024,10 @@ extern void gz_close(int gunzip_pid) 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); + } } |