mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue