diff options
Diffstat (limited to 'archival/libunarchive/unarchive.c')
-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 */ } |