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