From f2230fcaed3159d10caed63d9a20caa9fdc94c62 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Thu, 11 May 2017 12:29:41 +0200 Subject: [PATCH] Fix use-after-free in error branch. From Ngie Cooper. --- cpio/test/test_option_lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2