mirror of
https://github.com/chhylp123/hifiasm.git
synced 2026-10-09 08:08:11 +08:00
fixed a memory leak
This commit is contained in:
@@ -378,8 +378,10 @@ static void ha_pt_destroy(ha_pt_t *h)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
if (h == 0) return;
|
if (h == 0) return;
|
||||||
for (i = 0; i < 1<<h->pre; ++i)
|
for (i = 0; i < 1<<h->pre; ++i) {
|
||||||
yak_pt_destroy(h->h[i].h);
|
yak_pt_destroy(h->h[i].h);
|
||||||
|
free(h->h[i].a);
|
||||||
|
}
|
||||||
free(h->h); free(h);
|
free(h->h); free(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user