diff --git a/func.c b/func.c index 17bc0242..616317d6 100644 --- a/func.c +++ b/func.c @@ -42,6 +42,8 @@ void luaI_insertfunction (TFunc *f) static void freefunc (TFunc *f) { luaI_free (f->code); + if (f->locvars) + luaI_free (f->locvars); luaI_free (f); }