summaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorGlenn L McGrath2002-05-29 13:45:34 +0000
committerGlenn L McGrath2002-05-29 13:45:34 +0000
commita94a06a38eba7665f20c8e67cf2c424cab9ee43c (patch)
tree24fa935f9cb105f6871168d05f163620ef3cca80 /archival/libunarchive
parent1d4ef2a9e9c8d8b448bcce7dea36220e220e137b (diff)
downloadbusybox-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.c4
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 */
}