Fix archive_entry double free
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

archive_read_free also frees archive_entries. Avoid
double-free by removing manual free'ing of entry.
This commit is contained in:
Armin Friedl 2020-03-21 23:56:30 +01:00
parent e7a0b1b6bd
commit bde99e3ede
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8

View file

@ -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);
}