浏览代码

small bug

Roberto Ierusalimschy 30 年之前
父节点
当前提交
7918c6cf11
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);
 }