diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-09-26 11:26:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-26 11:26:09 +0200 |
commit | aa558b2bc2e88437f8ccb95318c648fe32ece762 (patch) | |
tree | a1cf9403f32b3fc1cb408e21b2456068ca3ea931 /src/blocks.c | |
parent | 53ef343a65e3da19d605cfb7e8909004cfac954e (diff) | |
parent | f4e9ba2068880d25034ebeca172e521d34d6b540 (diff) |
Merge pull request #156 from kivikakk/use-mem-to-free
Use cmark_mem to free where used to alloc
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c index 8e8c4c2..bfd64d8 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -989,7 +989,7 @@ static void open_new_blocks(cmark_parser *parser, cmark_node **container, parser->first_nonspace + 1); /* TODO: static */ memcpy(&((*container)->as.list), data, sizeof(*data)); - free(data); + parser->mem->free(data); } else if (indented && !maybe_lazy && !parser->blank) { S_advance_offset(parser, input, CODE_INDENT, true); *container = add_child(parser, *container, CMARK_NODE_CODE_BLOCK, |