{"action":"created","issue":{"url":"https://api.github.com/repos/danmar/cppcheck/issues/858","repository_url":"https://api.github.com/repos/danmar/cppcheck","labels_url":"https://api.github.com/repos/danmar/cppcheck/issues/858/labels{/name}","comments_url":"https://api.github.com/repos/danmar/cppcheck/issues/858/comments","events_url":"https://api.github.com/repos/danmar/cppcheck/issues/858/events","html_url":"https://github.com/danmar/cppcheck/pull/858","id":200802574,"number":858,"title":"Ticket #7820: Properly report leaks with conditional deallocations followed by a return.","user":{"login":"simartin","id":935202,"avatar_url":"https://avatars.githubusercontent.com/u/935202?v=3","gravatar_id":"","url":"https://api.github.com/users/simartin","html_url":"https://github.com/simartin","followers_url":"https://api.github.com/users/simartin/followers","following_url":"https://api.github.com/users/simartin/following{/other_user}","gists_url":"https://api.github.com/users/simartin/gists{/gist_id}","starred_url":"https://api.github.com/users/simartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simartin/subscriptions","organizations_url":"https://api.github.com/users/simartin/orgs","repos_url":"https://api.github.com/users/simartin/repos","events_url":"https://api.github.com/users/simartin/events{/privacy}","received_events_url":"https://api.github.com/users/simartin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-14T13:10:37Z","updated_at":"2017-01-16T21:10:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/danmar/cppcheck/pulls/858","html_url":"https://github.com/danmar/cppcheck/pull/858","diff_url":"https://github.com/danmar/cppcheck/pull/858.diff","patch_url":"https://github.com/danmar/cppcheck/pull/858.patch"},"body":"This ticket shows that the leak detector can be confused by \"return\", and this patch fixes this.\r\n\r\nI've removed line 1972 because I could not understand why it's needed (it will still leak when we're towards the EOF...), and the test suite keeps passing without it.\r\n"},"comment":{"url":"https://api.github.com/repos/danmar/cppcheck/issues/comments/272962837","html_url":"https://github.com/danmar/cppcheck/pull/858#issuecomment-272962837","issue_url":"https://api.github.com/repos/danmar/cppcheck/issues/858","id":272962837,"user":{"login":"simartin","id":935202,"avatar_url":"https://avatars.githubusercontent.com/u/935202?v=3","gravatar_id":"","url":"https://api.github.com/users/simartin","html_url":"https://github.com/simartin","followers_url":"https://api.github.com/users/simartin/followers","following_url":"https://api.github.com/users/simartin/following{/other_user}","gists_url":"https://api.github.com/users/simartin/gists{/gist_id}","starred_url":"https://api.github.com/users/simartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simartin/subscriptions","organizations_url":"https://api.github.com/users/simartin/orgs","repos_url":"https://api.github.com/users/simartin/repos","events_url":"https://api.github.com/users/simartin/events{/privacy}","received_events_url":"https://api.github.com/users/simartin/received_events","type":"User","site_admin":false},"created_at":"2017-01-16T21:10:54Z","updated_at":"2017-01-16T21:10:54Z","body":"Could be indeed. I'll see if I manage to find a test case that starts failing without the if on L1972"}}
{"actor":{"display_login":"simartin"}}