From 425e5813b0e9c43889b8649c87c8ac693e6afd11 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 21 Oct 2002 17:41:46 -0300 Subject: free prototype in (more or less) the same order it is created by `undump' --- lfunc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lfunc.c b/lfunc.c index d20424b5..433075e6 100644 --- a/lfunc.c +++ b/lfunc.c @@ -1,5 +1,5 @@ /* -** $Id: lfunc.c,v 1.59 2002/08/30 19:09:21 roberto Exp roberto $ +** $Id: lfunc.c,v 1.60 2002/10/16 20:40:58 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -96,10 +96,10 @@ Proto *luaF_newproto (lua_State *L) { void luaF_freeproto (lua_State *L, Proto *f) { luaM_freearray(L, f->code, f->sizecode, Instruction); + luaM_freearray(L, f->p, f->sizep, Proto *); + luaM_freearray(L, f->k, f->sizek, TObject); luaM_freearray(L, f->lineinfo, f->sizelineinfo, int); luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); - luaM_freearray(L, f->k, f->sizek, TObject); - luaM_freearray(L, f->p, f->sizep, Proto *); luaM_freelem(L, f); } -- cgit v1.2.3-55-g6feb