summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}