From f22ef4cc0696872c412a10ee7c6e36fba5ad1bdc Mon Sep 17 00:00:00 2001 From: Jayveer Date: Thu, 10 Sep 2020 16:26:16 +0100 Subject: [PATCH] Fix archive memory leak --- interface/Interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/Interface.cpp b/interface/Interface.cpp index fb6328d..d47ed4e 100644 --- a/interface/Interface.cpp +++ b/interface/Interface.cpp @@ -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);