REVIEW: Memory Leak - hash::resize()
196,628 bytes in 1 blocks are still reachable
This commit is contained in:
parent
8f76c2b401
commit
03a76a1805
@ -109,6 +109,11 @@ static HashRec* resize(struct naHash* hash)
|
||||
int oldsz = hr->size;
|
||||
while(oldsz) { oldsz >>= 1; lgsz++; }
|
||||
}
|
||||
|
||||
// REVIEW: Memory Leak - 196,628 bytes in 1 blocks are still reachable
|
||||
// Since method returns a HashRec*, assuming caller is responsible for freeing the memory
|
||||
// trace: codegen::naInternSymbol() > naHash_set() > size()
|
||||
// seems to be a known issue - refer to comment @ codegen::naInternSymbol()
|
||||
hr2 = naAlloc(recsize(lgsz));
|
||||
hr2->size = hr2->next = 0;
|
||||
hr2->lgsz = lgsz;
|
||||
|
Loading…
Reference in New Issue
Block a user