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