Skip to content

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

Description

@Oooocean
    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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions