1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 04:23:55 +02:00

poly2d/p2d_hsort.c (p2d_hier_free): use p2d_free, not p2d_free_all

This caused a double free.
This commit is contained in:
Werner Almesberger 2012-05-08 00:51:43 -03:00
parent 7f813b5254
commit 038667d0d8

View File

@ -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;
}
}