1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

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
This commit is contained in:
Enji Cooper 2017-05-11 08:22:01 +00:00
parent 20a438f31a
commit 9596f60f16
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318181

View File

@ -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;
}