From 9596f60f169062efb8eda3c6b0afe682dedaf85f Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 11 May 2017 08:22:01 +0000 Subject: [PATCH] cpio/tests/test_option_lz4: fix a use after free in the failure case This change will be upstreamed to the libarchive project. MFC after: 6 days MFC with: r317782 Reported by: Coverity Sponsored by: Dell EMC Isilon --- contrib/libarchive/cpio/test/test_option_lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libarchive/cpio/test/test_option_lz4.c b/contrib/libarchive/cpio/test/test_option_lz4.c index 88dfbd63bae9..ebd376736f42 100644 --- a/contrib/libarchive/cpio/test/test_option_lz4.c +++ b/contrib/libarchive/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; }