From e140259c6ca1889b0dddef8b075524723b147cfe Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 28 Oct 2014 17:36:19 +0000 Subject: Make the character table available to libroff so it can check the validity of character escape names and warn about unknown ones. This requires mchars_spec2cp() to report unknown names again. Fortunately, that doesn't require changing the calling code because according to groff, invalid character escapes should not produce output anyway, and now that we warn about them, that's fine. --- term.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'term.c') diff --git a/term.c b/term.c index 97f6d2bc..ecbfdf6a 100644 --- a/term.c +++ b/term.c @@ -42,11 +42,7 @@ void term_free(struct termp *p) { - if (p->buf) - free(p->buf); - if (p->symtab) - mchars_free(p->symtab); - + free(p->buf); free(p); } -- cgit