From 4158b2c457202c49e8804d6976f100ffb8ebb74c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 10 Nov 2014 14:07:33 -0800 Subject: Fixed memory allocation bug. --- src/inlines.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/inlines.c') diff --git a/src/inlines.c b/src/inlines.c index bf55a0f..364f117 100644 --- 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; } -- cgit v1.2.3