{"action":"closed","issue":{"url":"https://api.github.com/repos/ccrisan/streameye/issues/1","repository_url":"https://api.github.com/repos/ccrisan/streameye","labels_url":"https://api.github.com/repos/ccrisan/streameye/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ccrisan/streameye/issues/1/comments","events_url":"https://api.github.com/repos/ccrisan/streameye/issues/1/events","html_url":"https://github.com/ccrisan/streameye/issues/1","id":118023317,"number":1,"title":"Memory leaks in client.c","user":{"login":"m1k439","id":13544122,"avatar_url":"https://avatars.githubusercontent.com/u/13544122?v=3","gravatar_id":"","url":"https://api.github.com/users/m1k439","html_url":"https://github.com/m1k439","followers_url":"https://api.github.com/users/m1k439/followers","following_url":"https://api.github.com/users/m1k439/following{/other_user}","gists_url":"https://api.github.com/users/m1k439/gists{/gist_id}","starred_url":"https://api.github.com/users/m1k439/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1k439/subscriptions","organizations_url":"https://api.github.com/users/m1k439/orgs","repos_url":"https://api.github.com/users/m1k439/repos","events_url":"https://api.github.com/users/m1k439/events{/privacy}","received_events_url":"https://api.github.com/users/m1k439/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T11:41:26Z","updated_at":"2016-04-23T13:28:20Z","closed_at":"2016-04-23T13:28:20Z","body":"The methods write_response_ok_header() and write_response_auth_basic_header() both follow the following pattern:-\r\n\r\n   malloc() a buffer\r\n   sprintf() into the buffer\r\n   return write_to_client(buffer)\r\n\r\nwhich leaks the allocated memory; They should do something like:-\r\n\r\n   malloc() a buffer\r\n   sprintf() into the buffer\r\n   rc = write_to_client(buffer)\r\n   free( buffer );\r\n   return rc;"}}