Date: Fri, 17 Apr 2009 00:44:03 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191167 - head/lib/libarchive Message-ID: <200904170044.n3H0i3GE098618@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904170044.n3H0i3GE098618>