summaryrefslogtreecommitdiff
path: root/bk_xhtml.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2002-08-23 14:02:01 +0000
committerSimon Tatham <anakin@pobox.com>2002-08-23 14:02:01 +0000
commitbe179670d9d2703e433869d689bd30251c6ddb72 (patch)
tree5c025cb65f8fc3a9d03a1b5ce149a3ec8d7af801 /bk_xhtml.c
parent376e2a46704c33d50db68cbf9ab66f7506ee3875 (diff)
downloadhalibut-be179670d9d2703e433869d689bd30251c6ddb72.zip
halibut-be179670d9d2703e433869d689bd30251c6ddb72.tar.gz
halibut-be179670d9d2703e433869d689bd30251c6ddb72.tar.bz2
halibut-be179670d9d2703e433869d689bd30251c6ddb72.tar.xz
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]
Diffstat (limited to 'bk_xhtml.c')
-rw-r--r--bk_xhtml.c8
1 files changed, 8 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#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)