Free some variables after use

This commit is contained in:
Glenn L McGrath 2001-10-08 08:22:48 +00:00
parent 30f68908ef
commit dfa7b0eff6

View File

@ -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