From ab81ed27954a5f60de9a2f9b2845a90b87834e80 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 20 Sep 2021 17:53:21 -0700 Subject: [PATCH] fs.mitm: fix memory leak in romfs build (closes #1031) --- stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.cpp b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.cpp index 5adadd40a..9c2c2be8b 100644 --- a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.cpp +++ b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.cpp @@ -197,6 +197,7 @@ namespace ams::mitm::fs { ~TableWriter() { this->Flush(); + std::free(this->cache); } Entry *GetEntry(u32 entry_offset, u32 name_len) {