REVIEW: Memory Leak - nasal newBlock()
168 bytes in 7 blocks are still reachable
This commit is contained in:
parent
4ccaa68c6a
commit
69ad4a39e3
@ -301,6 +301,7 @@ static void newBlock(struct naPool* p, int need)
|
||||
|
||||
if(need < MIN_BLOCK_SIZE) need = MIN_BLOCK_SIZE;
|
||||
|
||||
// REVIEW: Memory Leak - 168 bytes in 7 blocks are still reachable
|
||||
newb = naAlloc(sizeof(struct Block));
|
||||
// REVIEW: Memory Leak - 113,376 bytes in 1 blocks are still reachable
|
||||
newb->block = naAlloc(need * p->elemsz);
|
||||
|
Loading…
Reference in New Issue
Block a user