Fix memory leak. 🤦
All checks were successful
continuous-integration/drone/push Build is passing

That's why I don't write C. 😄

This seems to fix issue #6 in single-threaded mode but sometimes throws “double
free or corruption (out)” in multi-threaded mode.

Bug: #6
This commit is contained in:
tastytea 2021-05-27 19:49:32 +02:00
parent ef8fdced51
commit b24ea9b71e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -74,6 +74,7 @@ std::string read_file(const fs::path &filepath, std::string_view entry_path)
entry_path, filepath.string())};
}
close_file(zipfile, filepath);
return filecontents;
}
archive_read_data_skip(zipfile);