{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/1646","labels_url":"https://api.github.com/repos/i3/i3/issues/1646/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/1646/comments","events_url":"https://api.github.com/repos/i3/i3/issues/1646/events","html_url":"https://github.com/i3/i3/issues/1646","id":67190337,"number":1646,"title":"Remove unnecessary null pointer checks","user":{"login":"elfring","id":660477,"avatar_url":"https://avatars.githubusercontent.com/u/660477?v=3","gravatar_id":"","url":"https://api.github.com/users/elfring","html_url":"https://github.com/elfring","followers_url":"https://api.github.com/users/elfring/followers","following_url":"https://api.github.com/users/elfring/following{/other_user}","gists_url":"https://api.github.com/users/elfring/gists{/gist_id}","starred_url":"https://api.github.com/users/elfring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfring/subscriptions","organizations_url":"https://api.github.com/users/elfring/orgs","repos_url":"https://api.github.com/users/elfring/repos","events_url":"https://api.github.com/users/elfring/events{/privacy}","received_events_url":"https://api.github.com/users/elfring/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/i3/i3/labels/4.10.1","name":"4.10.1","color":"009800"},{"url":"https://api.github.com/repos/i3/i3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-08T18:30:15Z","updated_at":"2015-07-01T21:46:08Z","closed_at":"2015-07-01T21:46:08Z","body":"[An extra null pointer check is not needed](http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html \"Do I need to check for NULL before free(p)?\") at source code places like the following.\r\n* [mkdirp](https://github.com/i3/i3/blob/d6657cea368927fc4dad26711abf4a655fe42955/libi3/mkdirp.c#L11 \"Improve mkdirp function?\")\r\n* [FREE](https://github.com/i3/i3/blob/3191be366d0f7d034e66f13019b4c7ea65b34f8d/include/util.h#L48 \"Improve FREE macro?\")\r\n\r\n\r\nWould you like to apply the following [semantic patch](http://coccinelle.lip6.fr/ \"Program transformation with Coccinelle?\") to find more update candidates?\r\n```\r\n@Remove_unnecessary_pointer_checks@\r\nexpression x;\r\n@@\r\n-if (x)\r\n    free(x);\r\n```"},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/117833325","html_url":"https://github.com/i3/i3/issues/1646#issuecomment-117833325","issue_url":"https://api.github.com/repos/i3/i3/issues/1646","id":117833325,"user":{"login":"Airblader","id":2392216,"avatar_url":"https://avatars.githubusercontent.com/u/2392216?v=3","gravatar_id":"","url":"https://api.github.com/users/Airblader","html_url":"https://github.com/Airblader","followers_url":"https://api.github.com/users/Airblader/followers","following_url":"https://api.github.com/users/Airblader/following{/other_user}","gists_url":"https://api.github.com/users/Airblader/gists{/gist_id}","starred_url":"https://api.github.com/users/Airblader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Airblader/subscriptions","organizations_url":"https://api.github.com/users/Airblader/orgs","repos_url":"https://api.github.com/users/Airblader/repos","events_url":"https://api.github.com/users/Airblader/events{/privacy}","received_events_url":"https://api.github.com/users/Airblader/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T21:46:08Z","updated_at":"2015-07-01T21:46:08Z","body":"I'm going to close this due to inactivity. As Michael pointed out, pull requests for such things are welcome, but there isn't much reason to have a ticket open for this as it's a non-issue."}}