Browse Source

small bug

Roberto Ierusalimschy 29 years ago
parent
commit
7918c6cf11
1 changed files with 2 additions and 0 deletions
  1. 2 0
      func.c

+ 2 - 0
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);
 }