aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-08-15 00:04:51 +0200
committerThomas White <taw@bitwiz.org.uk>2012-08-15 00:04:51 +0200
commitafebf69e4dfd871cb1f618b9072c982dc0583e05 (patch)
tree2f62295a5403cbab3cf6beed5205f5534c3808b3 /src
parent3d0d122d46ff38c47adbe3d4960440aaefc5705c (diff)
Free the blocks
Diffstat (limited to 'src')
-rw-r--r--src/storycode.c5
1 files changed, 5 insertions, 0 deletions
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; i<bl->n_blocks; i++ ) {
+ free(bl->blocks[i]);
+ }
free(bl->blocks);
free(bl);
}