Fix archive_entry double free
archive_read_free also frees archive_entries. Avoid double-free by removing manual free'ing of entry.
This commit is contained in:
parent
e7a0b1b6bd
commit
bde99e3ede
1 changed files with 0 additions and 1 deletions
|
@ -51,7 +51,6 @@ xwim::ArchiveReaderSys::ArchiveReaderSys(std::filesystem::path& path) {
|
|||
xwim::ArchiveReaderSys::~ArchiveReaderSys() {
|
||||
logger::trace("Destructing ArchiveReaderSys");
|
||||
|
||||
if (this->ae) archive_entry_free(this->ae);
|
||||
if (this->ar) archive_read_free(this->ar);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue