diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-10 14:07:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-10 14:07:33 -0800 |
commit | 4158b2c457202c49e8804d6976f100ffb8ebb74c (patch) | |
tree | d589c5ddf38f5f95c5d2d934f809f847a2e43e4e /src/inlines.c | |
parent | b8acbe96ba23d7931d694bcbb4add02fa290158e (diff) |
Fixed memory allocation bug.
Diffstat (limited to 'src/inlines.c')
-rw-r--r-- | src/inlines.c | 7 |
1 files changed, 1 insertions, 6 deletions
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; } |