mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
There's no way for entry to possibly be NULL at the end of write_entry
(in fact, there has never been any way for it to be NULL, going all the way back to revision 1.1 of this file), so remove the check and unconditionally free entry. Found by: Coverity Prevent
This commit is contained in:
parent
ee99deabac
commit
1eef28bb67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179126
@ -932,8 +932,7 @@ write_entry(struct bsdtar *bsdtar, struct archive *a, const struct stat *st,
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
|
||||
if (entry != NULL)
|
||||
archive_entry_free(entry);
|
||||
archive_entry_free(entry);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user