fixed a memory leak

This commit is contained in:
Heng Li
2020-03-25 23:52:09 -04:00
parent ff8194d291
commit 60d94790a2
+3 -1
View File
@@ -378,8 +378,10 @@ static void ha_pt_destroy(ha_pt_t *h)
{
int i;
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);
free(h->h[i].a);
}
free(h->h); free(h);
}