mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +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:
parent
20a438f31a
commit
9596f60f16
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318181
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user