Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用pbc时为什么会有内存泄漏? #8

Open
Oooocean opened this issue Dec 21, 2016 · 0 comments
Open

使用pbc时为什么会有内存泄漏? #8

Oooocean opened this issue Dec 21, 2016 · 0 comments

Comments

@Oooocean
Copy link

Oooocean commented Dec 21, 2016

    local req_name = "ZoneProtocol.GetSceneItemListReq"
    local S1 = snapshot()
    pb.encode(req_name, {sceneid=0})
    local S2 = snapshot()
    for k,v in pairs(S2) do
      if S1[k] == nil then
        print(k,v)
      end
    end

输出:
userdata: 0x7f0b21083cc0 table
0x7f0b1fc8b708 : S1 : ...iao/rp_server/pub/test_robot/bin/service/robot_agent.lua:146

userdata: 0x7f0b2101c040 table
0x7f0b1fca2dc0 : ZoneProtocol.GetSceneItemListReq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant