Skip to content

Commit 8546b4b

Browse files
committed
Ensure instructions being freed are removed from the tree
1 parent 791c947 commit 8546b4b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib/unlang/compile.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,12 @@ unlang_t *unlang_compile_children(unlang_group_t *g, unlang_compile_ctx_t *unlan
14641464
if (gext->value) {
14651465
skip_else = single->debug_name;
14661466
} else {
1467+
/*
1468+
* If this came from compile_single, then it will already
1469+
* have a number and be in the tree.
1470+
*/
1471+
if (single->number) fr_rb_remove(unlang_instruction_tree, single);
1472+
14671473
/*
14681474
* The condition never
14691475
* matches, so we can

0 commit comments

Comments
 (0)