cmark

My personal build of CMark ✏️

Commit
2efea7a064e911311979e0387d6d99abe9c6020a
Parent
8ed5c9d6362555d7c57073970701c743b6d870ad
Author
John MacFarlane <jgm@berkeley.edu>
Date

Inlines: Ensure that the delimiter stack is freed in subject.

Diffstat

1 file changed, 4 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 5 4 1
diff --git 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);
   }