add pool memory management

This commit is contained in:
Quentin Carbonneaux 2015-10-06 22:51:51 -04:00
parent 99ad19546d
commit 72fc455978
7 changed files with 54 additions and 33 deletions

View file

@ -188,7 +188,7 @@ limit(Bits *b, int k, Bits *fst)
return 0;
if (nt > maxt) {
free(tarr);
tarr = alloc(nt * sizeof tarr[0]);
tarr = ealloc(nt * sizeof tarr[0]);
maxt = nt;
}
i = 0;