svn commit: r191167 - head/lib/libarchive

Tim Kientzle kientzle at FreeBSD.org
Fri Apr 17 00:44:04 UTC 2009


Author: kientzle
Date: Fri Apr 17 00:44:03 2009
New Revision: 191167
URL: http://svn.freebsd.org/changeset/base/191167

Log:
  Fix a minor memory leak.

Modified:
  head/lib/libarchive/archive_write_disk.c

Modified: head/lib/libarchive/archive_write_disk.c
==============================================================================
--- head/lib/libarchive/archive_write_disk.c	Fri Apr 17 00:42:45 2009	(r191166)
+++ head/lib/libarchive/archive_write_disk.c	Fri Apr 17 00:44:03 2009	(r191167)
@@ -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);


More information about the svn-src-all mailing list