aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lfunc.c b/lfunc.c
index bb8a48c2..e55b59d9 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 1.63 2002/11/14 16:15:53 roberto Exp roberto $ 2** $Id: lfunc.c,v 1.64 2002/12/04 17:38:31 roberto Exp roberto $
3** Auxiliary functions to manipulate prototypes and closures 3** Auxiliary functions to manipulate prototypes and closures
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -85,6 +85,7 @@ Proto *luaF_newproto (lua_State *L) {
85 f->sizecode = 0; 85 f->sizecode = 0;
86 f->sizelineinfo = 0; 86 f->sizelineinfo = 0;
87 f->nupvalues = 0; 87 f->nupvalues = 0;
88 f->upvalues = NULL;
88 f->numparams = 0; 89 f->numparams = 0;
89 f->is_vararg = 0; 90 f->is_vararg = 0;
90 f->maxstacksize = 0; 91 f->maxstacksize = 0;
@@ -103,6 +104,7 @@ void luaF_freeproto (lua_State *L, Proto *f) {
103 luaM_freearray(L, f->k, f->sizek, TObject); 104 luaM_freearray(L, f->k, f->sizek, TObject);
104 luaM_freearray(L, f->lineinfo, f->sizelineinfo, int); 105 luaM_freearray(L, f->lineinfo, f->sizelineinfo, int);
105 luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); 106 luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar);
107 luaM_freearray(L, f->upvalues, f->nupvalues, TString *);
106 luaM_freelem(L, f); 108 luaM_freelem(L, f);
107} 109}
108 110