From: andy Date: Fri, 14 Oct 2005 16:42:32 +0000 (+0000) Subject: Fix memory leak discovered by Mathias Froehlich X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c12162407c59ff1ef111d2b2c82f6fd68dbfafe2;p=simgear.git Fix memory leak discovered by Mathias Froehlich --- diff --git a/simgear/nasal/gc.c b/simgear/nasal/gc.c index ee209527..b43b584e 100644 --- a/simgear/nasal/gc.c +++ b/simgear/nasal/gc.c @@ -123,7 +123,9 @@ static void naCode_gcclean(struct naCode* o) naFree(o->byteCode); o->byteCode = 0; naFree(o->constants); o->constants = 0; naFree(o->argSyms); o->argSyms = 0; - naFree(o->optArgSyms); o->argSyms = 0; + naFree(o->optArgSyms); o->optArgSyms = 0; + naFree(o->optArgVals); o->optArgVals = 0; + naFree(o->lineIps); o->lineIps = 0; } static void naGhost_gcclean(struct naGhost* g)