summaryrefslogtreecommitdiff
path: root/cpio/test
diff options
context:
space:
mode:
authorTERESH1 <svyatoslavtereshin@yandex.ru>2022-12-28 05:30:21 +0300
committerGitHub <noreply@github.com>2022-12-27 18:30:21 -0800
commit0025ae839102aabc167690db60b154970ec4de05 (patch)
tree7bccb9b1032e4eaa933ab155e2dccbce8d231a52 /cpio/test
parent2d329073435d36065ce30bfd29428f6a45e41016 (diff)
downloadlibarchive-0025ae839102aabc167690db60b154970ec4de05.tar.gz
Memory leaks fix for tests (#1829)
Issue #1828
Diffstat (limited to 'cpio/test')
-rw-r--r--cpio/test/test_option_J_upper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpio/test/test_option_J_upper.c b/cpio/test/test_option_J_upper.c
index 1d7d0513..e19d599e 100644
--- a/cpio/test/test_option_J_upper.c
+++ b/cpio/test/test_option_J_upper.c
@@ -43,6 +43,7 @@ DEFINE_TEST(test_option_J_upper)
if (strstr(p, "compression not available") != NULL) {
skipping("This version of bsdcpio was compiled "
"without xz support");
+ free(p);
return;
}
failure("-J option is broken");