mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: memory leak , See Issue #323
This commit is contained in:
@@ -135,6 +135,7 @@ static void freesharedproto (lua_State *L, SharedProto *f) {
|
|||||||
luaM_freearray(L, f->lineinfo, f->sizelineinfo);
|
luaM_freearray(L, f->lineinfo, f->sizelineinfo);
|
||||||
luaM_freearray(L, f->locvars, f->sizelocvars);
|
luaM_freearray(L, f->locvars, f->sizelocvars);
|
||||||
luaM_freearray(L, f->upvalues, f->sizeupvalues);
|
luaM_freearray(L, f->upvalues, f->sizeupvalues);
|
||||||
|
luaM_free(L, f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void luaF_freeproto (lua_State *L, Proto *f) {
|
void luaF_freeproto (lua_State *L, Proto *f) {
|
||||||
|
|||||||
Reference in New Issue
Block a user