summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-09 19:14:52 -0300
committerpommicket <pommicket@gmail.com>2023-08-09 19:14:52 -0300
commitcca844b42a6303282e7536c8834b74ff56140cbf (patch)
tree78e58dcbb386c10e0311bfced55f79e251e1a569 /node.c
parent310faf5d70b8a65c83c013a31ab87d9d3f301767 (diff)
more pointerizing of buffers, fix memory leaks
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;