Skip to content

Commit

Permalink
Fix archive memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayveer committed Sep 10, 2020
1 parent cd4dc1e commit f22ef4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int Interface::extract(const char* archiveFile, int id, const char* output) {
DecimaArchive* archive = archiveFactory(archiveFile);
archive->setMessageHandler(this);
if (!archive->open()) {
destroyArchive(archive);
destroyArchive(archive, archiveFile);
return 0;
}
archive->extractFile(id, output);
Expand Down

0 comments on commit f22ef4c

Please sign in to comment.