From 801aaf37b14a1fad5bb49c9a4200d25680152471 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Mar 2002 14:47:14 -0300 Subject: simpler implementation for line information --- lfunc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lfunc.c') diff --git a/lfunc.c b/lfunc.c index 2b79b8de..205f39b6 100644 --- a/lfunc.c +++ b/lfunc.c @@ -1,5 +1,5 @@ /* -** $Id: lfunc.c,v 1.53 2001/12/21 17:31:35 roberto Exp roberto $ +** $Id: lfunc.c,v 1.54 2002/03/05 12:42:47 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -87,7 +87,6 @@ Proto *luaF_newproto (lua_State *L) { f->marked = 0; f->lineinfo = NULL; f->sizelocvars = 0; - f->sizelineinfo = 0; f->locvars = NULL; f->lineDefined = 0; f->source = NULL; @@ -99,10 +98,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->lineinfo, f->sizecode, 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_freearray(L, f->lineinfo, f->sizelineinfo, int); luaM_freelem(L, f); } -- cgit v1.2.3-55-g6feb