Skip to content

Commit 855d81a

Browse files
committed
Fully handle unreferencing a block exit
If a block exit has a further block exit in its subtree, we need to keep recursing.
1 parent 8c12a6b commit 855d81a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/prism.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12533,7 +12533,10 @@ pm_node_unreference_each(const pm_node_t *node, void *data) {
1253312533
);
1253412534
}
1253512535
parser->current_block_exits->size--;
12536-
return false;
12536+
12537+
/* Note returning true here because these nodes could have
12538+
* arguments that are themselves block exits. */
12539+
return true;
1253712540
}
1253812541

1253912542
index++;

0 commit comments

Comments
 (0)