commit 425e5813b0e9c43889b8649c87c8ac693e6afd11
parent 6505503b49c90c069db6ed8ea28b7d1a8c922678
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 21 Oct 2002 17:41:24 -0300
free prototype in (more or less) the same order it is created by
`undump'
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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);
}