:: commit 95649d448da214befeec29be30a38a3eb59469b1

Mintsuki <mintsuki@protonmail.com> — 2026-02-08 10:22

parents: 5aeaa2a2be

lib/term: Set terms to NULL after freeing in fallback fail path

diff --git a/common/lib/term.c b/common/lib/term.c
index 117303a1..cc9fc00e 100644
--- a/common/lib/term.c
+++ b/common/lib/term.c
@@ -306,5 +306,6 @@ fail:
     pmm_free(terms[0], sizeof(struct flanterm_context));
     pmm_free(terms, sizeof(void *));
     terms_i = 0;
+    terms = NULL;
 #endif
 }
tab: 248 wrap: offon