From 946733c26ed1a9304a2149bdaaa8996a2b0272ff Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Fri, 17 Apr 2009 00:44:03 +0000 Subject: [PATCH] Fix a minor memory leak. --- lib/libarchive/archive_write_disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libarchive/archive_write_disk.c b/lib/libarchive/archive_write_disk.c index 60fa227ad586..80b1b6a69e66 100644 --- a/lib/libarchive/archive_write_disk.c +++ b/lib/libarchive/archive_write_disk.c @@ -1278,6 +1278,8 @@ _archive_write_finish(struct archive *_a) (a->cleanup_gid)(a->lookup_gid_data); if (a->cleanup_uid != NULL && a->lookup_uid_data != NULL) (a->cleanup_uid)(a->lookup_uid_data); + if (a->entry) + archive_entry_free(a->entry); archive_string_free(&a->_name_data); archive_string_free(&a->archive.error_string); archive_string_free(&a->path_safe);