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];