From: Joerg Sonnenberger Date: Thu, 11 May 2017 10:29:41 +0000 (+0200) Subject: Fix use-after-free in error branch. From Ngie Cooper. X-Git-Tag: v3.3.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2230fcaed3159d10caed63d9a20caa9fdc94c62;p=thirdparty%2Flibarchive.git Fix use-after-free in error branch. From Ngie Cooper. --- diff --git a/cpio/test/test_option_lz4.c b/cpio/test/test_option_lz4.c index 88dfbd63b..ebd376736 100644 --- a/cpio/test/test_option_lz4.c +++ b/cpio/test/test_option_lz4.c @@ -74,8 +74,8 @@ DEFINE_TEST(test_option_lz4) free(p); return; } - free(p); failure("--lz4 option is broken: %s", p); + free(p); assertEqualInt(r, 0); return; }