summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-26 16:45:05 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-26 16:45:19 +0100
commit2efea7a064e911311979e0387d6d99abe9c6020a (patch)
tree16daa6bc0c959ecf7ddb684f8b0aedaad908fe22 /src/inlines.c
parent8ed5c9d6362555d7c57073970701c743b6d870ad (diff)
Inlines: Ensure that the delimiter stack is freed in subject.
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c5
1 files changed, 4 insertions, 1 deletions
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);
}