]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fixed double free when calling lzx_huffman_init frees pointer ds- 1520/head
authorOndrej Dubaj <odubaj@redhat.com>
Wed, 31 Mar 2021 09:50:44 +0000 (11:50 +0200)
committerOndrej Dubaj <odubaj@redhat.com>
Wed, 31 Mar 2021 09:50:44 +0000 (11:50 +0200)
libarchive/archive_read_support_format_cab.c

index 43738b53744dae30a3ad61638c5e5624db09ff08..950f3d254de6e928e9f8f41aaa1dca51727fead6 100644 (file)
@@ -2110,7 +2110,6 @@ lzx_decode_init(struct lzx_stream *strm, int w_bits)
                ds->pos_tbl = malloc(sizeof(ds->pos_tbl[0]) * w_slot);
                if (ds->pos_tbl == NULL)
                        return (ARCHIVE_FATAL);
-               lzx_huffman_free(&(ds->mt));
        }
 
        for (footer = 0; footer < 18; footer++)