{"action":"created","issue":{"url":"https://api.github.com/repos/luvit/luv/issues/208","labels_url":"https://api.github.com/repos/luvit/luv/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/luvit/luv/issues/208/comments","events_url":"https://api.github.com/repos/luvit/luv/issues/208/events","html_url":"https://github.com/luvit/luv/issues/208","id":127922075,"number":208,"title":"Memory leak in luv_fs_read?","user":{"login":"tbastos","id":150480,"avatar_url":"https://avatars.githubusercontent.com/u/150480?v=3","gravatar_id":"","url":"https://api.github.com/users/tbastos","html_url":"https://github.com/tbastos","followers_url":"https://api.github.com/users/tbastos/followers","following_url":"https://api.github.com/users/tbastos/following{/other_user}","gists_url":"https://api.github.com/users/tbastos/gists{/gist_id}","starred_url":"https://api.github.com/users/tbastos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbastos/subscriptions","organizations_url":"https://api.github.com/users/tbastos/orgs","repos_url":"https://api.github.com/users/tbastos/repos","events_url":"https://api.github.com/users/tbastos/events{/privacy}","received_events_url":"https://api.github.com/users/tbastos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T13:18:12Z","updated_at":"2016-01-21T14:10:57Z","closed_at":null,"body":"Am I missing something, or is this `malloc` leaking?\r\n\r\nhttps://github.com/luvit/luv/blob/master/src/fs.c#L324\r\n\r\nCouldn't figure out where that memory is freed.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/luvit/luv/issues/comments/173579977","html_url":"https://github.com/luvit/luv/issues/208#issuecomment-173579977","issue_url":"https://api.github.com/repos/luvit/luv/issues/208","id":173579977,"user":{"login":"rphillips","id":1963,"avatar_url":"https://avatars.githubusercontent.com/u/1963?v=3","gravatar_id":"","url":"https://api.github.com/users/rphillips","html_url":"https://github.com/rphillips","followers_url":"https://api.github.com/users/rphillips/followers","following_url":"https://api.github.com/users/rphillips/following{/other_user}","gists_url":"https://api.github.com/users/rphillips/gists{/gist_id}","starred_url":"https://api.github.com/users/rphillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rphillips/subscriptions","organizations_url":"https://api.github.com/users/rphillips/orgs","repos_url":"https://api.github.com/users/rphillips/repos","events_url":"https://api.github.com/users/rphillips/events{/privacy}","received_events_url":"https://api.github.com/users/rphillips/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T14:10:56Z","updated_at":"2016-01-21T14:10:56Z","body":"It should get cleaned up with luv_cleanup_req. The malloc needs to be able to span the time it takes for the callback to happen or an error with the call.\r\n\r\nhttps://github.com/luvit/luv/blob/master/src/fs.c#L243-LL297"}}