Fix double free(). Found by Kosmaty (Issue 33). Thanks.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Sat, 19 Dec 2009 00:05:18 +0000 (00:05 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Sat, 19 Dec 2009 00:05:18 +0000 (00:05 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@503 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libbb/unarchive.c

index 62ca2674e4aec15024a0ee1fc91050c30580a12a..bf57a04777c126be7c8a473bf284d9eea30f5f8e 100644 (file)
@@ -746,7 +746,6 @@ deb_extract(const char *package_filename, FILE *out_stream,
                                gz_err = gz_close(gunzip_pid);
                                if (gz_err)
                                        *err = -1;
-                               free_header_tar(tar_header);
                                break;
                        }
                        seek_sub_file(unzipped_opkg_stream, tar_header->size);