diff options
author | Yuki Izumi <[email protected]> | 2016-09-26 15:44:36 +1000 |
---|---|---|
committer | Yuki Izumi <[email protected]> | 2016-09-26 15:44:37 +1000 |
commit | f4e9ba2068880d25034ebeca172e521d34d6b540 (patch) | |
tree | a1cf9403f32b3fc1cb408e21b2456068ca3ea931 /src/inlines.c | |
parent | 53ef343a65e3da19d605cfb7e8909004cfac954e (diff) |
Use cmark_mem to free where used to alloc
Diffstat (limited to 'src/inlines.c')
-rw-r--r-- | src/inlines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inlines.c b/src/inlines.c index 586279f..1c998b3 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -353,7 +353,7 @@ static void remove_delimiter(subject *subj, delimiter *delim) { if (delim->previous != NULL) { delim->previous->next = delim->next; } - free(delim); + subj->mem->free(delim); } static void pop_bracket(subject *subj) { @@ -362,7 +362,7 @@ static void pop_bracket(subject *subj) { return; b = subj->last_bracket; subj->last_bracket = subj->last_bracket->previous; - free(b); + subj->mem->free(b); } static void push_delimiter(subject *subj, unsigned char c, bool can_open, |