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
}
