cmark

My personal build of CMark ✏️

Commit
4158b2c457202c49e8804d6976f100ffb8ebb74c
Parent
b8acbe96ba23d7931d694bcbb4add02fa290158e
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed memory allocation bug.

Diffstat

1 file changed, 1 insertion, 6 deletions

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 7 1 6
diff --git a/src/inlines.c b/src/inlines.c
@@ -791,12 +791,7 @@ match:
 		while (opener != NULL) {
 			tempstack = opener->previous;
 			if (opener->delim_char == '[') {
-				free(opener);
-				if (closer_above) {
-					closer_above->previous = tempstack;
-				} else {
-					subj->delimiters = tempstack;
-				}
+				remove_delimiter(subj, opener);
 			} else {
 				closer_above = opener;
 			}