aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}