{"action":"created","issue":{"url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/issues/3","repository_url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession","labels_url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/issues/3/comments","events_url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/issues/3/events","html_url":"https://github.com/google/macops-MOLAuthenticatingURLSession/pull/3","id":167141766,"number":3,"title":"Leaks during client authentication","user":{"login":"tburgin","id":2117646,"avatar_url":"https://avatars.githubusercontent.com/u/2117646?v=3","gravatar_id":"","url":"https://api.github.com/users/tburgin","html_url":"https://github.com/tburgin","followers_url":"https://api.github.com/users/tburgin/followers","following_url":"https://api.github.com/users/tburgin/following{/other_user}","gists_url":"https://api.github.com/users/tburgin/gists{/gist_id}","starred_url":"https://api.github.com/users/tburgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tburgin/subscriptions","organizations_url":"https://api.github.com/users/tburgin/orgs","repos_url":"https://api.github.com/users/tburgin/repos","events_url":"https://api.github.com/users/tburgin/events{/privacy}","received_events_url":"https://api.github.com/users/tburgin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-22T22:07:57Z","updated_at":"2016-08-02T18:59:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/pulls/3","html_url":"https://github.com/google/macops-MOLAuthenticatingURLSession/pull/3","diff_url":"https://github.com/google/macops-MOLAuthenticatingURLSession/pull/3.diff","patch_url":"https://github.com/google/macops-MOLAuthenticatingURLSession/pull/3.patch"},"body":"This only seems to happen during client authentication:\r\n```\r\nLeaked Object\t#\tAddress\tSize\tResponsible Library\tResponsible Frame\r\nMalloc 64 Bytes\t2\t< multiple >\t128 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nMalloc 64 Bytes\t1\t0x62000007b8c0\t64 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nMalloc 16 Bytes\t2\t< multiple >\t32 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nMalloc 64 Bytes\t2\t< multiple >\t128 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nMalloc 16 Bytes\t2\t< multiple >\t32 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nMalloc 16 Bytes\t1\t0x620000014420\t16 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nSecIdentity\t1\t0x628000267540\t64 Bytes\tSecurity\tSecurity::SecCFObject::allocate(unsigned long, Security::CFClass const&)\r\n```\r\n\r\nThis patch seems to take care of most of the leaks. There are two leaks that I can't seems to remediate.\r\n\r\n```\r\nLeaked Object\t#\tAddress\tSize\tResponsible Library\tResponsible Frame\r\nMalloc 64 Bytes\t1\t0x60000087c180\t64 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\nMalloc 16 Bytes\t1\t0x60000001bde0\t16 Bytes\tSecurity\tDefaultAllocator::malloc(unsigned long)\r\n```\r\n\r\nI have opened a bug with Apple. https://openradar.appspot.com/radar?id=5518388159840256\r\n"},"comment":{"url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/issues/comments/237007347","html_url":"https://github.com/google/macops-MOLAuthenticatingURLSession/pull/3#issuecomment-237007347","issue_url":"https://api.github.com/repos/google/macops-MOLAuthenticatingURLSession/issues/3","id":237007347,"user":{"login":"tburgin","id":2117646,"avatar_url":"https://avatars.githubusercontent.com/u/2117646?v=3","gravatar_id":"","url":"https://api.github.com/users/tburgin","html_url":"https://github.com/tburgin","followers_url":"https://api.github.com/users/tburgin/followers","following_url":"https://api.github.com/users/tburgin/following{/other_user}","gists_url":"https://api.github.com/users/tburgin/gists{/gist_id}","starred_url":"https://api.github.com/users/tburgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tburgin/subscriptions","organizations_url":"https://api.github.com/users/tburgin/orgs","repos_url":"https://api.github.com/users/tburgin/repos","events_url":"https://api.github.com/users/tburgin/events{/privacy}","received_events_url":"https://api.github.com/users/tburgin/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T18:59:36Z","updated_at":"2016-08-02T18:59:36Z","body":"Done."}}
{"actor":{"display_login":"tburgin"}}