summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2008-03-15 11:06:15 +0000
committerkientzle <kientzle@FreeBSD.org>2008-03-15 11:06:15 +0000
commitc37b281ebcd1b2f819b2d1a2c57e5a6bdeb00ddf (patch)
tree4d437eb1fc82961d91840df24a114c5c0d646cd1 /lib/libarchive
parentee09b4a8968dca8c00c9278d5792751834df9ab7 (diff)
downloadFreeBSD-src-c37b281ebcd1b2f819b2d1a2c57e5a6bdeb00ddf.zip
FreeBSD-src-c37b281ebcd1b2f819b2d1a2c57e5a6bdeb00ddf.tar.gz
Free up the entry objects allocated during this test.
Diffstat (limited to 'lib/libarchive')
-rw-r--r--lib/libarchive/test/test_empty_write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libarchive/test/test_empty_write.c b/lib/libarchive/test/test_empty_write.c
index ed5c650..37b14b8 100644
--- a/lib/libarchive/test/test_empty_write.c
+++ b/lib/libarchive/test/test_empty_write.c
@@ -47,6 +47,7 @@ DEFINE_TEST(test_empty_write)
archive_entry_set_mode(ae, S_IFREG | 0755);
archive_entry_set_size(ae, 0);
assertA(0 == archive_write_header(a, ae));
+ archive_entry_free(ae);
/* THE TEST: write zero bytes to this entry. */
/* This used to crash. */
@@ -76,6 +77,7 @@ DEFINE_TEST(test_empty_write)
archive_entry_set_mode(ae, S_IFREG | 0755);
archive_entry_set_size(ae, 0);
assertA(0 == archive_write_header(a, ae));
+ archive_entry_free(ae);
/* THE TEST: write zero bytes to this entry. */
assertEqualIntA(a, 0, archive_write_data(a, "", 0));
@@ -104,6 +106,7 @@ DEFINE_TEST(test_empty_write)
archive_entry_set_mode(ae, S_IFREG | 0755);
archive_entry_set_size(ae, 0);
assertA(0 == archive_write_header(a, ae));
+ archive_entry_free(ae);
/* THE TEST: write zero bytes to this entry. */
assertEqualIntA(a, 0, archive_write_data(a, "", 0));
OpenPOWER on IntegriCloud