aboutsummaryrefslogtreecommitdiffstats
path: root/cpio/test/test_option_lzma.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/test/test_option_lzma.c')
-rw-r--r--cpio/test/test_option_lzma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpio/test/test_option_lzma.c b/cpio/test/test_option_lzma.c
index c6e335301505..b7cad3d1e99a 100644
--- a/cpio/test/test_option_lzma.c
+++ b/cpio/test/test_option_lzma.c
@@ -43,14 +43,18 @@ DEFINE_TEST(test_option_lzma)
if (strstr(p, "compression not available") != NULL) {
skipping("This version of bsdcpio was compiled "
"without lzma support");
+ free(p);
return;
}
failure("--lzma option is broken");
assertEqualInt(r, 0);
+ free(p);
return;
}
+ free(p);
/* Check that the archive file has an lzma signature. */
p = slurpfile(&s, "archive.out");
assert(s > 2);
assertEqualMem(p, "\x5d\00\00", 3);
+ free(p);
}