:: commit a3ebee437cea9c6a84750c401d7107128e1cf1da

Mintsuki <mintsuki@protonmail.com> — 2026-02-08 17:31

parents: e3b8f58571

lib/gterm: Free terms array when no terminals are initialized

diff --git a/common/lib/gterm.c b/common/lib/gterm.c
index 5271c434..53eb8787 100644
--- a/common/lib/gterm.c
+++ b/common/lib/gterm.c
@@ -842,6 +842,7 @@ no_load_font:;
     }
 
     if (terms_i == 0) {
+        pmm_free(terms, fbs_count * sizeof(void *));
         return false;
     }
 
tab: 248 wrap: offon