{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/meka/issues/13","labels_url":"https://api.github.com/repos/ocornut/meka/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/meka/issues/13/comments","events_url":"https://api.github.com/repos/ocornut/meka/issues/13/events","html_url":"https://github.com/ocornut/meka/pull/13","id":116074489,"number":13,"title":"Fixed leak in g_env.argv and TB_Message.filename.","user":{"login":"danielt3","id":1739215,"avatar_url":"https://avatars.githubusercontent.com/u/1739215?v=3","gravatar_id":"","url":"https://api.github.com/users/danielt3","html_url":"https://github.com/danielt3","followers_url":"https://api.github.com/users/danielt3/followers","following_url":"https://api.github.com/users/danielt3/following{/other_user}","gists_url":"https://api.github.com/users/danielt3/gists{/gist_id}","starred_url":"https://api.github.com/users/danielt3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielt3/subscriptions","organizations_url":"https://api.github.com/users/danielt3/orgs","repos_url":"https://api.github.com/users/danielt3/repos","events_url":"https://api.github.com/users/danielt3/events{/privacy}","received_events_url":"https://api.github.com/users/danielt3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T10:03:36Z","updated_at":"2015-11-10T11:26:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ocornut/meka/pulls/13","html_url":"https://github.com/ocornut/meka/pull/13","diff_url":"https://github.com/ocornut/meka/pull/13.diff","patch_url":"https://github.com/ocornut/meka/pull/13.patch"},"body":"Both g_env.argv and TB_Message.filename were allocated using strdup but never deallocated using free."},"comment":{"url":"https://api.github.com/repos/ocornut/meka/issues/comments/155394701","html_url":"https://github.com/ocornut/meka/pull/13#issuecomment-155394701","issue_url":"https://api.github.com/repos/ocornut/meka/issues/13","id":155394701,"user":{"login":"ocornut","id":8225057,"avatar_url":"https://avatars.githubusercontent.com/u/8225057?v=3","gravatar_id":"","url":"https://api.github.com/users/ocornut","html_url":"https://github.com/ocornut","followers_url":"https://api.github.com/users/ocornut/followers","following_url":"https://api.github.com/users/ocornut/following{/other_user}","gists_url":"https://api.github.com/users/ocornut/gists{/gist_id}","starred_url":"https://api.github.com/users/ocornut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocornut/subscriptions","organizations_url":"https://api.github.com/users/ocornut/orgs","repos_url":"https://api.github.com/users/ocornut/repos","events_url":"https://api.github.com/users/ocornut/events{/privacy}","received_events_url":"https://api.github.com/users/ocornut/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T11:26:07Z","updated_at":"2015-11-10T11:26:07Z","body":"It's pretty much unnecessary at the end of main, in practice I assume nothing in MEKA is freed up (unless you ran a leak detector and only those 2 were left-over?)\r\n\r\nFor the coding style you can remove unnecessary braces, add space after if, no space after open-parenthesis, and use ptr != NULL rather than NULL != ptr.\r\n"}}