diff options
author | Glenn L McGrath | 2002-05-29 13:45:34 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-05-29 13:45:34 +0000 |
commit | a94a06a38eba7665f20c8e67cf2c424cab9ee43c (patch) | |
tree | 24fa935f9cb105f6871168d05f163620ef3cca80 /archival/libunarchive | |
parent | 1d4ef2a9e9c8d8b448bcce7dea36220e220e137b (diff) | |
download | busybox-a94a06a38eba7665f20c8e67cf2c424cab9ee43c.zip busybox-a94a06a38eba7665f20c8e67cf2c424cab9ee43c.tar.gz |
Patch from Randolfe Averty to fixup package conflict checks, cleanup some memory leaks and reorganise dependency checking.
Some further memory leaks fixed by me.
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/unarchive.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archival/libunarchive/unarchive.c b/archival/libunarchive/unarchive.c index 49908af..312b498 100644 --- a/archival/libunarchive/unarchive.c +++ b/archival/libunarchive/unarchive.c @@ -192,7 +192,9 @@ char *extract_archive(FILE *src_stream, FILE *out_stream, const file_header_t *f fprintf(out_stream, "%s\n", full_name); } - free(full_name); + if (prefix != NULL) { + free(full_name); + } return(NULL); /* Maybe we should say if failed */ } |