From 2efea7a064e911311979e0387d6d99abe9c6020a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 26 Nov 2016 16:45:05 +0100 Subject: Inlines: Ensure that the delimiter stack is freed in subject. --- src/inlines.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inlines.c b/src/inlines.c index 08d86ae..3a5733f 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -1124,7 +1124,10 @@ extern void cmark_parse_inlines(cmark_mem *mem, cmark_node *parent, ; process_emphasis(&subj, NULL); - // free bracket stack + // free bracket and delim stack + while (subj.last_delim) { + pop_bracket(&subj); + } while (subj.last_bracket) { pop_bracket(&subj); } -- cgit v1.2.3