From 39d2f52987b4c511158fa77748f72bb0c7301970 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Mon, 10 Nov 2025 19:38:40 -0700 Subject: [PATCH] Free dictionary on failed load (#733) Free the dictionary if it failed to load. --- ISLE/isleapp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index e8cde906..87321226 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -1075,6 +1075,8 @@ bool IsleApp::LoadConfig() // [library:config] // Load sane defaults if dictionary failed to load if (!dict || dict->n == 0) { + iniparser_freedict(dict); + if (m_iniPath) { SDL_Log("Invalid config path '%s'", m_iniPath); return false;