]> git.mxchange.org Git - simgear.git/commitdiff
Fix memory leak discovered by Mathias Froehlich
authorandy <andy>
Fri, 14 Oct 2005 16:42:32 +0000 (16:42 +0000)
committerandy <andy>
Fri, 14 Oct 2005 16:42:32 +0000 (16:42 +0000)
simgear/nasal/gc.c

index ee2095277b770db3797c7ac34559be9fb3080777..b43b584e4bb3c0a1ee9fabda3ee5c70030b1f768 100644 (file)
@@ -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)