From 038667d0d86f3c6329e24b9c1b6647ef799208a9 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 8 May 2012 00:51:43 -0300 Subject: [PATCH] poly2d/p2d_hsort.c (p2d_hier_free): use p2d_free, not p2d_free_all This caused a double free. --- poly2d/p2d_hsort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poly2d/p2d_hsort.c b/poly2d/p2d_hsort.c index e4ee6e6..07aa958 100644 --- a/poly2d/p2d_hsort.c +++ b/poly2d/p2d_hsort.c @@ -101,7 +101,7 @@ void p2d_hier_free(struct p2d_hier *t) p2d_hier_free(t->holes); p = &t->p; next = p2d_to_hier(p->next); - p2d_free_all(p); + p2d_free(p); t = next; } }