From 720a1fe7d2692037a21702acd54e628c74f9547a Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sun, 23 Aug 2020 01:02:27 -0500 Subject: [PATCH] REVIEW: Memory Leak - naTempSave() 1,024 bytes in 1 blocks are still reachable --- simgear/nasal/misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/nasal/misc.c b/simgear/nasal/misc.c index 0a5c8615..11296fe3 100644 --- a/simgear/nasal/misc.c +++ b/simgear/nasal/misc.c @@ -17,6 +17,7 @@ void naTempSave(naContext c, naRef r) if(c->ntemps >= c->tempsz) { struct naObj** newtemps; c->tempsz *= 2; + // REVIEW: Memory Leak - 1,024 bytes in 1 blocks are still reachable newtemps = naAlloc(c->tempsz * sizeof(struct naObj*)); for(i=0; intemps; i++) newtemps[i] = c->temps[i];