From be179670d9d2703e433869d689bd30251c6ddb72 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 23 Aug 2002 14:02:01 +0000 Subject: Just had a play with this newfangled `valgrind' memory debugger thingy, which seems moderately cool and has reported a few very small memory leaks. Now apparently fixed. [originally from svn r1863] --- bk_xhtml.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bk_xhtml.c') diff --git a/bk_xhtml.c b/bk_xhtml.c index 22173d5..edab934 100644 --- a/bk_xhtml.c +++ b/bk_xhtml.c @@ -28,6 +28,7 @@ #include #include +#include #include #include "halibut.h" @@ -675,6 +676,13 @@ void xhtml_backend(paragraph *sourceform, keywordlist *in_keywords, } ientry->backend_data = NULL; } + { + int i; + sfree(conf.fchapter.number_suffix); + for (i = 0; i < conf.nfsect; i++) + sfree(conf.fsect[i].number_suffix); + sfree(conf.fsect); + } } static int xhtml_para_level(paragraph *p) -- cgit v1.1