{"action":"created","issue":{"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/14","repository_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go","labels_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/14/comments","events_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/14/events","html_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/14","id":157451774,"number":14,"title":"Close response body if doRequest returns an error","user":{"login":"pminten","id":4168875,"avatar_url":"https://avatars.githubusercontent.com/u/4168875?v=3","gravatar_id":"","url":"https://api.github.com/users/pminten","html_url":"https://github.com/pminten","followers_url":"https://api.github.com/users/pminten/followers","following_url":"https://api.github.com/users/pminten/following{/other_user}","gists_url":"https://api.github.com/users/pminten/gists{/gist_id}","starred_url":"https://api.github.com/users/pminten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pminten/subscriptions","organizations_url":"https://api.github.com/users/pminten/orgs","repos_url":"https://api.github.com/users/pminten/repos","events_url":"https://api.github.com/users/pminten/events{/privacy}","received_events_url":"https://api.github.com/users/pminten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-30T08:03:13Z","updated_at":"2016-05-30T13:10:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/14","html_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/14","diff_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/14.diff","patch_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/14.patch"},"body":"The callers don't seem to close the body if there's an error (e.g. no recipients were passed). This seems to cause a memory leak."},"comment":{"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/comments/222489535","html_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/14#issuecomment-222489535","issue_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/14","id":222489535,"user":{"login":"kgilonne","id":6340469,"avatar_url":"https://avatars.githubusercontent.com/u/6340469?v=3","gravatar_id":"","url":"https://api.github.com/users/kgilonne","html_url":"https://github.com/kgilonne","followers_url":"https://api.github.com/users/kgilonne/followers","following_url":"https://api.github.com/users/kgilonne/following{/other_user}","gists_url":"https://api.github.com/users/kgilonne/gists{/gist_id}","starred_url":"https://api.github.com/users/kgilonne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgilonne/subscriptions","organizations_url":"https://api.github.com/users/kgilonne/orgs","repos_url":"https://api.github.com/users/kgilonne/repos","events_url":"https://api.github.com/users/kgilonne/events{/privacy}","received_events_url":"https://api.github.com/users/kgilonne/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T13:10:51Z","updated_at":"2016-05-30T13:10:51Z","body":"Warning:\r\n- empty resp will panic (line 230) and it will be normally always the case.\r\n- if all attempts are used in the loop, there will be a double close.\r\nLline 235 can be move between the line 245 and 245."}}
{"actor":{"display_login":"kgilonne"}}