diff --git a/simgear/nasal/hash.c b/simgear/nasal/hash.c index 3679a0ca..1bcaead2 100644 --- a/simgear/nasal/hash.c +++ b/simgear/nasal/hash.c @@ -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;