small bug

This commit is contained in:
Roberto Ierusalimschy 1996-02-08 16:14:17 -02:00
parent 826d70fcba
commit 7918c6cf11
1 changed files with 2 additions and 0 deletions

2
func.c
View File

@ -42,6 +42,8 @@ void luaI_insertfunction (TFunc *f)
static void freefunc (TFunc *f) static void freefunc (TFunc *f)
{ {
luaI_free (f->code); luaI_free (f->code);
if (f->locvars)
luaI_free (f->locvars);
luaI_free (f); luaI_free (f);
} }