mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Fix memory leak, See #952
This commit is contained in:
@@ -133,6 +133,7 @@ mc_remote(lua_State *L) {
|
||||
lua_pushlightuserdata(L, pack->data);
|
||||
lua_pushinteger(L, (lua_Integer)(pack->size));
|
||||
skynet_free(pack);
|
||||
skynet_free(ptr);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user