From d97df6075aebeebdf4d06dba8c3a4b555d3e0e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sj=C3=B6blom?= Date: Tue, 9 Jun 2026 19:51:18 +0200 Subject: [PATCH] Fixing memory leak in Read subcommand --- src/commands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.cpp b/src/commands.cpp index 75cfa71..330f8b9 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -301,6 +301,7 @@ int HandleRead(const std::string &file, const std::string &target, uint32_t fileSize; auto fileContent = ReadFile(hArchive, file.c_str(), &fileSize, lcid); if (!fileContent) { + CloseMpqArchive(hArchive); return 1; }