REVIEW: Memory Leak - NASAL GC

1,032,712 bytes in 6 blocks are still reachable.
naFree(p->free0) is required during shutdown.
This commit is contained in:
Scott Giese 2020-08-17 19:11:01 -05:00
parent e5bbd62e96
commit d79ecddaf9

View File

@ -420,6 +420,8 @@ static void reap(struct naPool* p)
if(p->freesz < freesz) {
naFree(p->free0);
p->freesz = freesz;
// REVIEW: Memory Leak - 1,032,712 bytes in 6 blocks are still reachable
// naFree(p->free0) is required during shutdown
p->free = p->free0 = naAlloc(sizeof(void*) * p->freesz);
}