{"action":"created","issue":{"url":"https://api.github.com/repos/cloudwu/skynet/issues/341","labels_url":"https://api.github.com/repos/cloudwu/skynet/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/cloudwu/skynet/issues/341/comments","events_url":"https://api.github.com/repos/cloudwu/skynet/issues/341/events","html_url":"https://github.com/cloudwu/skynet/issues/341","id":106461507,"number":341,"title":"lua-netpack.c 疑似有内存没有释放","user":{"login":"KAndQ","id":3312253,"avatar_url":"https://avatars.githubusercontent.com/u/3312253?v=3","gravatar_id":"","url":"https://api.github.com/users/KAndQ","html_url":"https://github.com/KAndQ","followers_url":"https://api.github.com/users/KAndQ/followers","following_url":"https://api.github.com/users/KAndQ/following{/other_user}","gists_url":"https://api.github.com/users/KAndQ/gists{/gist_id}","starred_url":"https://api.github.com/users/KAndQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KAndQ/subscriptions","organizations_url":"https://api.github.com/users/KAndQ/orgs","repos_url":"https://api.github.com/users/KAndQ/repos","events_url":"https://api.github.com/users/KAndQ/events{/privacy}","received_events_url":"https://api.github.com/users/KAndQ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T02:02:23Z","updated_at":"2015-09-15T02:14:01Z","closed_at":null,"body":"hello. \r\n这里只是释放了 uc 的内存, 但是 uc->pack.buffer 指向的数据并没有释放.\r\n```C\r\nstatic void\r\nclear_list(struct uncomplete * uc) {\r\n\twhile (uc) {\r\n\t\tvoid * tmp = uc;\r\n\t\tuc = uc->next;\r\n\t\tskynet_free(tmp);\r\n\t}\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cloudwu/skynet/issues/comments/140256038","html_url":"https://github.com/cloudwu/skynet/issues/341#issuecomment-140256038","issue_url":"https://api.github.com/repos/cloudwu/skynet/issues/341","id":140256038,"user":{"login":"cloudwu","id":729648,"avatar_url":"https://avatars.githubusercontent.com/u/729648?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudwu","html_url":"https://github.com/cloudwu","followers_url":"https://api.github.com/users/cloudwu/followers","following_url":"https://api.github.com/users/cloudwu/following{/other_user}","gists_url":"https://api.github.com/users/cloudwu/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudwu/subscriptions","organizations_url":"https://api.github.com/users/cloudwu/orgs","repos_url":"https://api.github.com/users/cloudwu/repos","events_url":"https://api.github.com/users/cloudwu/events{/privacy}","received_events_url":"https://api.github.com/users/cloudwu/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T02:14:01Z","updated_at":"2015-09-15T02:14:01Z","body":"https://github.com/cloudwu/skynet/blob/master/lualib-src/lua-netpack.c#L49-L57"}}