diff --git a/simgear/nasal/code.c b/simgear/nasal/code.c index 88b2c207..0c92ecba 100644 --- a/simgear/nasal/code.c +++ b/simgear/nasal/code.c @@ -173,6 +173,8 @@ static void initGlobals() naGC_init(&(globals->pools[i]), i); globals->deadsz = BASE_SIZE; globals->ndead = 0; + // REVIEW: Memory Leak - 2,048,000 bytes in 1 blocks are still reachable + // naFree(globals->deadBlocks) is required during shutdown globals->deadBlocks = naAlloc(sizeof(void*) * globals->deadsz); // Initialize a single context