summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-10 14:07:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-10 14:07:33 -0800
commit4158b2c457202c49e8804d6976f100ffb8ebb74c (patch)
treed589c5ddf38f5f95c5d2d934f809f847a2e43e4e /src/inlines.c
parentb8acbe96ba23d7931d694bcbb4add02fa290158e (diff)
Fixed memory allocation bug.
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c7
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;
}