Fix memory leak discovered by Mathias Froehlich

This commit is contained in:
andy 2005-10-14 16:42:32 +00:00
parent 7f5c3b223a
commit c12162407c

View 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)