{"action":"created","issue":{"url":"https://api.github.com/repos/netty/netty/issues/3844","labels_url":"https://api.github.com/repos/netty/netty/issues/3844/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/3844/comments","events_url":"https://api.github.com/repos/netty/netty/issues/3844/events","html_url":"https://github.com/netty/netty/pull/3844","id":82569921,"number":3844,"title":"fixing small leak on exception on the transport-epoll-native allocation","user":{"login":"clebertsuconic","id":750514,"avatar_url":"https://avatars.githubusercontent.com/u/750514?v=3","gravatar_id":"","url":"https://api.github.com/users/clebertsuconic","html_url":"https://github.com/clebertsuconic","followers_url":"https://api.github.com/users/clebertsuconic/followers","following_url":"https://api.github.com/users/clebertsuconic/following{/other_user}","gists_url":"https://api.github.com/users/clebertsuconic/gists{/gist_id}","starred_url":"https://api.github.com/users/clebertsuconic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clebertsuconic/subscriptions","organizations_url":"https://api.github.com/users/clebertsuconic/orgs","repos_url":"https://api.github.com/users/clebertsuconic/repos","events_url":"https://api.github.com/users/clebertsuconic/events{/privacy}","received_events_url":"https://api.github.com/users/clebertsuconic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/netty/netty/labels/defect","name":"defect","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/netty/netty/milestones/116","html_url":"https://github.com/netty/netty/milestones/4.0.29.Final","labels_url":"https://api.github.com/repos/netty/netty/milestones/116/labels","id":1091077,"number":116,"title":"4.0.29.Final","description":"","creator":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":32,"state":"open","created_at":"2015-04-30T13:26:30Z","updated_at":"2015-05-31T07:37:27Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-05-29T20:15:43Z","updated_at":"2015-05-31T07:37:27Z","closed_at":"2015-05-31T07:37:27Z","pull_request":{"url":"https://api.github.com/repos/netty/netty/pulls/3844","html_url":"https://github.com/netty/netty/pull/3844","diff_url":"https://github.com/netty/netty/pull/3844.diff","patch_url":"https://github.com/netty/netty/pull/3844.patch"},"body":"Motivation:\r\n\r\nthe JNI function ThrowNew won't release any allocated memory.\r\nThe method exceptionMessage is allocating a new string concatenating 2 constant strings\r\nWhat is creating a small leak in case of these exceptions are happening.\r\n\r\nModifications:\r\n\r\nAdded new methods that will use exceptionMessage and free resources accordingly.\r\nI am also removing the inline definition on these methods as they could be reused by\r\nother added modules (e.g. libaio which should be coming soon)\r\n\r\nResult:\r\n\r\nNo more leaks in case of failrues."},"comment":{"url":"https://api.github.com/repos/netty/netty/issues/comments/107139566","html_url":"https://github.com/netty/netty/pull/3844#issuecomment-107139566","issue_url":"https://api.github.com/repos/netty/netty/issues/3844","id":107139566,"user":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T07:37:27Z","updated_at":"2015-05-31T07:37:27Z","body":"@clebertsuconic thanks again!\r\n\r\nCherry-picked into 4.0 (ea0f84e72d5cab4f5793e6ee68b7f7e9ab5cde45), 4.1 (70e3d17620061767ce06f69e11a370fb61d69d08) and master (c0e889ae543e291f03f003485ee54dd281945ec6)"}}