summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-11-27 21:08:59 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-11-27 21:08:59 -0800
commitc2260346fe030bea18b2410cc673eddd6bbd836d (patch)
tree088eac84c503038e4664d19933c7c6fe1d3574e3
parent9c85fb496e9bdffd438df720045d5a12e6c03cc7 (diff)
libix2: cleanup pads w/pad_free on ix2_new errors
oops
-rw-r--r--src/ix2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ix2.c b/src/ix2.c
index 47bb592..2ff7862 100644
--- a/src/ix2.c
+++ b/src/ix2.c
@@ -442,9 +442,9 @@ ix2_t * ix2_new(bb2f_t *aabb, unsigned max_per_node, unsigned max_depth)
return ix2;
fail_object_pad:
- free(ix2->ref_pad);
+ pad_free(ix2->ref_pad);
fail_ref_pad:
- free(ix2->node_pad);
+ pad_free(ix2->node_pad);
fail_node_pad:
free(ix2);
fail_ix2:
© 2021 All Rights Reserved