mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 23:28:37 -04: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
1 changed files with 1 additions and 2 deletions
|
|
@ -932,8 +932,7 @@ abort:
|
|||
if (fd >= 0)
|
||||
close(fd);
|
||||
|
||||
if (entry != NULL)
|
||||
archive_entry_free(entry);
|
||||
archive_entry_free(entry);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue