diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-02 10:06:20 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-02 10:06:20 -0300 |
| commit | 9a0f0dcc77adbde0618af1f10e5d430f42b76cc2 (patch) | |
| tree | 04162ec7fc538fc3054ffa7fb4c5e0181c3f3571 /lfunc.c | |
| parent | 751cd867d3e0338279fa6f3390c8b7ddc0108659 (diff) | |
| download | lua-9a0f0dcc77adbde0618af1f10e5d430f42b76cc2.tar.gz lua-9a0f0dcc77adbde0618af1f10e5d430f42b76cc2.tar.bz2 lua-9a0f0dcc77adbde0618af1f10e5d430f42b76cc2.zip | |
precompiler may create functions without `lineinfo'
Diffstat (limited to 'lfunc.c')
| -rw-r--r-- | lfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lfunc.c,v 1.54 2002/03/05 12:42:47 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.55 2002/03/25 17:47:14 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 | */ |
| @@ -98,7 +98,8 @@ Proto *luaF_newproto (lua_State *L) { | |||
| 98 | 98 | ||
| 99 | void luaF_freeproto (lua_State *L, Proto *f) { | 99 | void luaF_freeproto (lua_State *L, Proto *f) { |
| 100 | luaM_freearray(L, f->code, f->sizecode, Instruction); | 100 | luaM_freearray(L, f->code, f->sizecode, Instruction); |
| 101 | luaM_freearray(L, f->lineinfo, f->sizecode, int); | 101 | if (f->lineinfo) |
| 102 | luaM_freearray(L, f->lineinfo, f->sizecode, int); | ||
| 102 | luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); | 103 | luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); |
| 103 | luaM_freearray(L, f->k, f->sizek, TObject); | 104 | luaM_freearray(L, f->k, f->sizek, TObject); |
| 104 | luaM_freearray(L, f->p, f->sizep, Proto *); | 105 | luaM_freearray(L, f->p, f->sizep, Proto *); |
