:: commit b3c64e8230b2bf873696e295351bb304feb0e518

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

parents: 8c4fc614f1

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