summaryrefslogtreecommitdiff
path: root/bk_text.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_text.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_text.c')
-rw-r--r--bk_text.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bk_text.c b/bk_text.c
index b682b42..1c8cfb9 100644
--- a/bk_text.c
+++ b/bk_text.c
@@ -313,7 +313,14 @@ void text_backend(paragraph *sourceform, keywordlist *keywords,
* Tidy up
*/
fclose(fp);
- sfree(conf.bullet.text);
+ {
+ int i;
+ sfree(conf.achapter.number_suffix);
+ for (i = 0; i < conf.nasect; i++)
+ sfree(conf.asect[i].number_suffix);
+ sfree(conf.asect);
+ sfree(conf.bullet.text);
+ }
}
/*