diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-08-15 00:04:51 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-08-15 00:04:51 +0200 |
commit | afebf69e4dfd871cb1f618b9072c982dc0583e05 (patch) | |
tree | 2f62295a5403cbab3cf6beed5205f5534c3808b3 | |
parent | 3d0d122d46ff38c47adbe3d4960440aaefc5705c (diff) |
Free the blocks
-rw-r--r-- | src/storycode.c | 5 |
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); } |