X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libbb%2Funzip.c;h=058aa07535539719180b3c3b28b1394f4116a25f;hp=88d2a0aed8dc663d738047698e4b95c8bd2e6331;hb=b6349400c742950c6d0f37b73a5b76605ee8dff4;hpb=af15a17a5a2476a4fd656d9e4bcdb1e134732962 diff --git a/libbb/unzip.c b/libbb/unzip.c index 88d2a0a..058aa07 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c @@ -639,8 +639,11 @@ static int inflate_block(int *e) } /* decompress until an end-of-block code */ - if (inflate_codes(tl, td, bl, bd)) + if (inflate_codes(tl, td, bl, bd)) { + huft_free(tl); + huft_free(td); return 1; + } /* free the decoding tables, return */ huft_free(tl); @@ -816,8 +819,11 @@ static int inflate_block(int *e) } /* decompress until an end-of-block code */ - if (inflate_codes(tl, td, bl, bd)) + if (inflate_codes(tl, td, bl, bd)) { + huft_free(tl); + huft_free(td); return 1; + } /* free the decoding tables, return */ huft_free(tl);