summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_set_format_xar.c
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2017-01-30 16:46:29 +0100
committerMartin Matuska <martin@matuska.org>2017-01-30 16:46:29 +0100
commit8347f046f145e6593ba6f8b8edb51bddc9279f0d (patch)
tree1c7ff6041cd51acbafd39d86b9f4b7437c8f6c6b /libarchive/archive_write_set_format_xar.c
parent6a509898d71ad4b31e4e4a00f42f7e8b00b7f03a (diff)
downloadlibarchive-8347f046f145e6593ba6f8b8edb51bddc9279f0d.tar.gz
Plug memory leak in XAR reader and one in XAR writer
Diffstat (limited to 'libarchive/archive_write_set_format_xar.c')
-rw-r--r--libarchive/archive_write_set_format_xar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c
index c9f5ac23..495f0d44 100644
--- a/libarchive/archive_write_set_format_xar.c
+++ b/libarchive/archive_write_set_format_xar.c
@@ -1961,6 +1961,7 @@ file_free(struct file *file)
archive_string_free(&(file->basename));
archive_string_free(&(file->symlink));
archive_string_free(&(file->script));
+ archive_entry_free(file->entry);
free(file);
}