summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html.c3
-rw-r--r--term.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/html.c b/html.c
index f3c09f24..dba49121 100644
--- a/html.c
+++ b/html.c
@@ -402,6 +402,9 @@ html_free(void *p)
SLIST_REMOVE_HEAD(&h->stack, entry);
free(tag);
}
+
+ if (h->symtab)
+ chars_free(h->symtab);
free(h);
}
diff --git a/term.c b/term.c
index 6b3a56d3..becdbbfc 100644
--- a/term.c
+++ b/term.c
@@ -90,7 +90,7 @@ term_free(struct termp *p)
if (p->buf)
free(p->buf);
- if (TERMENC_ASCII == p->enc && p->symtab)
+ if (p->symtab)
chars_free(p->symtab);
free(p);