:: commit f03231804d64fe1e11249813ded2de04eeb47016

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

parents: 4bb98f972a

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