From 685866ffa7e92fb9cee0e4b6644e487a1be4fb94 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 16:11:52 -0500 Subject: [PATCH] // REVIEW: Memory Leak - nasal newBlock() 113,376 bytes in 1 blocks are still reachable --- simgear/nasal/gc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/nasal/gc.c b/simgear/nasal/gc.c index 1be014f2..423a42ba 100644 --- a/simgear/nasal/gc.c +++ b/simgear/nasal/gc.c @@ -302,6 +302,7 @@ static void newBlock(struct naPool* p, int need) if(need < MIN_BLOCK_SIZE) need = MIN_BLOCK_SIZE; newb = naAlloc(sizeof(struct Block)); + // REVIEW: Memory Leak - 113,376 bytes in 1 blocks are still reachable newb->block = naAlloc(need * p->elemsz); newb->size = need; newb->next = p->blocks;