mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 08:09:33 +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:
parent
7f813b5254
commit
038667d0d8
@ -101,7 +101,7 @@ void p2d_hier_free(struct p2d_hier *t)
|
|||||||
p2d_hier_free(t->holes);
|
p2d_hier_free(t->holes);
|
||||||
p = &t->p;
|
p = &t->p;
|
||||||
next = p2d_to_hier(p->next);
|
next = p2d_to_hier(p->next);
|
||||||
p2d_free_all(p);
|
p2d_free(p);
|
||||||
t = next;
|
t = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user