summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-09-26 00:46:34 -0400
committerTavian Barnes <tavianator@gmail.com>2010-09-26 00:46:34 -0400
commit725bd4f0b4cc067fc2770f7f8ffd9c815c745239 (patch)
tree2bf8c049473d27057ce8cbac2a08eb2be05443b6 /libdimension/prtree.c
parent46bf25a9bed9eec6aaa8c4cad8144c7df629da30 (diff)
downloaddimension-725bd4f0b4cc067fc2770f7f8ffd9c815c745239.tar.xz
Add dmnsn_free() to match dmnsn_malloc().
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r--libdimension/prtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c
index 95f0eaa..479f3cb 100644
--- a/libdimension/prtree.c
+++ b/libdimension/prtree.c
@@ -357,7 +357,7 @@ dmnsn_delete_pseudo_prtree(dmnsn_pseudo_prtree *pseudo)
dmnsn_delete_pseudo_prtree(pseudo->pseudo.node.left);
dmnsn_delete_pseudo_prtree(pseudo->pseudo.node.right);
}
- free(pseudo);
+ dmnsn_free(pseudo);
}
}
@@ -526,7 +526,7 @@ dmnsn_delete_prtree_node(dmnsn_prtree_node *node)
dmnsn_delete_prtree_node(node->children[i]);
}
}
- free(node);
+ dmnsn_free(node);
}
}
@@ -537,7 +537,7 @@ dmnsn_delete_prtree(dmnsn_prtree *tree)
if (tree) {
dmnsn_delete_prtree_node(tree->root);
dmnsn_delete_array(tree->unbounded);
- free(tree);
+ dmnsn_free(tree);
}
}