From afebf69e4dfd871cb1f618b9072c982dc0583e05 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 15 Aug 2012 00:04:51 +0200 Subject: Free the blocks --- src/storycode.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/storycode.c b/src/storycode.c index 4adfe1b..4edc39e 100644 --- a/src/storycode.c +++ b/src/storycode.c @@ -84,6 +84,11 @@ SCBlockList *sc_block_list_new() void sc_block_list_free(SCBlockList *bl) { + int i; + + for ( i=0; in_blocks; i++ ) { + free(bl->blocks[i]); + } free(bl->blocks); free(bl); } -- cgit v1.2.3