bugfix: memory leak , See Issue #323

This commit is contained in:
Cloud Wu
2015-08-12 12:03:52 +08:00
parent 926b44ddf6
commit 7547126570

View File

@@ -135,6 +135,7 @@ static void freesharedproto (lua_State *L, SharedProto *f) {
luaM_freearray(L, f->lineinfo, f->sizelineinfo);
luaM_freearray(L, f->locvars, f->sizelocvars);
luaM_freearray(L, f->upvalues, f->sizeupvalues);
luaM_free(L, f);
}
void luaF_freeproto (lua_State *L, Proto *f) {