aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libarchive/tar/test/test_option_lzop.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libarchive/tar/test/test_option_lzop.c')
-rw-r--r--contrib/libarchive/tar/test/test_option_lzop.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/libarchive/tar/test/test_option_lzop.c b/contrib/libarchive/tar/test/test_option_lzop.c
index 1145499a4605..20ef06c5c8a0 100644
--- a/contrib/libarchive/tar/test/test_option_lzop.c
+++ b/contrib/libarchive/tar/test/test_option_lzop.c
@@ -42,14 +42,17 @@ DEFINE_TEST(test_option_lzop)
if (r != 0) {
if (!canLzop()) {
skipping("lzop is not supported on this platform");
- return;
+ goto done;
}
failure("--lzop option is broken");
assertEqualInt(r, 0);
- return;
+ goto done;
}
+ free(p);
/* Check that the archive file has an lzma signature. */
p = slurpfile(&s, "archive.out");
assert(s > 2);
assertEqualMem(p, "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a\x0a", 9);
+done:
+ free(p);
}