summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath2001-10-08 08:22:48 +0000
committerGlenn L McGrath2001-10-08 08:22:48 +0000
commitdfa7b0eff68c91a1bea329d1056390b74e11265a (patch)
treeaab4cc8c01676e23dd9456aff96a6d7a57f72592 /libbb
parent30f68908ef8efdfead1ba499aaabdb2133b0e63f (diff)
downloadbusybox-dfa7b0eff68c91a1bea329d1056390b74e11265a.zip
busybox-dfa7b0eff68c91a1bea329d1056390b74e11265a.tar.gz
Free some variables after use
Diffstat (limited to 'libbb')
-rw-r--r--libbb/unarchive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index 7b85243..beb3969 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -607,11 +607,15 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
output_buffer = unarchive(uncompressed_stream, out_stream, get_header_tar, extract_function, prefix, file_list);
}
seek_sub_file(deb_stream, ar_header->size);
+ free(ar_header->name);
+ free(ar_header);
}
gz_close(gunzip_pid);
fclose(deb_stream);
fclose(uncompressed_stream);
free(ared_file);
+ free(file_list[0]);
+ free(file_list);
return(output_buffer);
}
#endif