summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.c b/node.c
index 51a1422..ccd9936 100644
--- a/node.c
+++ b/node.c
@@ -148,6 +148,7 @@ void node_close(Ted *ted, Node *node) {
}
// replace parent with other side of split
*parent = *other_side;
+ free(other_side);
arr_remove_item(ted->nodes, other_side);
if (was_active) {
Node *new_active_node = parent;