cmark

My personal build of CMark ✏️

Commit
12501f1000f592ff67cca98b6733f0bfa3115f9f
Parent
b75890e0fd7abb995d083b795c2cd45703b7cb22
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed code for freeing delimiter stack.

Note, however, that this may not be needed at all: the old code would have gone into an infinite loop if the delimiter stack were not already freed.

If we can prove that the delimiter stack is empty at this point, we could remove this; on the other hand, it may not hurt to keep it here defensively.

Closes #189.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 2 1 1
diff --git a/src/inlines.c b/src/inlines.c
@@ -1165,7 +1165,7 @@ extern void cmark_parse_inlines(cmark_mem *mem, cmark_node *parent,
   process_emphasis(&subj, NULL);
   // free bracket and delim stack
   while (subj.last_delim) {
-    pop_bracket(&subj);
+    remove_delimiter(&subj, subj.last_delim);
   }
   while (subj.last_bracket) {
     pop_bracket(&subj);