{"action":"closed","number":67,"pull_request":{"url":"https://api.github.com/repos/GomSpace/libcsp/pulls/67","id":62756436,"html_url":"https://github.com/GomSpace/libcsp/pull/67","diff_url":"https://github.com/GomSpace/libcsp/pull/67.diff","patch_url":"https://github.com/GomSpace/libcsp/pull/67.patch","issue_url":"https://api.github.com/repos/GomSpace/libcsp/issues/67","number":67,"state":"closed","locked":false,"title":"Bugfix: removed memory leak when receiving CSP_PS","user":{"login":"magalno","id":9163226,"avatar_url":"https://avatars.githubusercontent.com/u/9163226?v=3","gravatar_id":"","url":"https://api.github.com/users/magalno","html_url":"https://github.com/magalno","followers_url":"https://api.github.com/users/magalno/followers","following_url":"https://api.github.com/users/magalno/following{/other_user}","gists_url":"https://api.github.com/users/magalno/gists{/gist_id}","starred_url":"https://api.github.com/users/magalno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magalno/subscriptions","organizations_url":"https://api.github.com/users/magalno/orgs","repos_url":"https://api.github.com/users/magalno/repos","events_url":"https://api.github.com/users/magalno/events{/privacy}","received_events_url":"https://api.github.com/users/magalno/received_events","type":"User","site_admin":false},"body":"When running the csp_ps() received packet buffers are not freed, resulting in the system running out of buffers after repeated calls to csp_ps(). \r\n\r\nThere is a clean up section at the button of the function. However this only frees packets if they are non-NULL. As the last call to csp_read() always returns NULL when there is no more to receive, the packet buffer fails the if(packet != NULL) test and is never freed. \r\n\r\nProposed fix:\r\nFree all received buffers after the content has been read.","created_at":"2016-03-14T14:30:57Z","updated_at":"2016-03-30T06:29:48Z","closed_at":"2016-03-30T06:29:48Z","merged_at":null,"merge_commit_sha":"117dc98f5b22b35f5f3fa55ec66edd344f989953","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GomSpace/libcsp/pulls/67/commits","review_comments_url":"https://api.github.com/repos/GomSpace/libcsp/pulls/67/comments","review_comment_url":"https://api.github.com/repos/GomSpace/libcsp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GomSpace/libcsp/issues/67/comments","statuses_url":"https://api.github.com/repos/GomSpace/libcsp/statuses/730b42692e144fc9de2254e7f7d585e972cd231b","head":{"label":"magalno:master","ref":"master","sha":"730b42692e144fc9de2254e7f7d585e972cd231b","user":{"login":"magalno","id":9163226,"avatar_url":"https://avatars.githubusercontent.com/u/9163226?v=3","gravatar_id":"","url":"https://api.github.com/users/magalno","html_url":"https://github.com/magalno","followers_url":"https://api.github.com/users/magalno/followers","following_url":"https://api.github.com/users/magalno/following{/other_user}","gists_url":"https://api.github.com/users/magalno/gists{/gist_id}","starred_url":"https://api.github.com/users/magalno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magalno/subscriptions","organizations_url":"https://api.github.com/users/magalno/orgs","repos_url":"https://api.github.com/users/magalno/repos","events_url":"https://api.github.com/users/magalno/events{/privacy}","received_events_url":"https://api.github.com/users/magalno/received_events","type":"User","site_admin":false},"repo":{"id":53862027,"name":"libcsp","full_name":"magalno/libcsp","owner":{"login":"magalno","id":9163226,"avatar_url":"https://avatars.githubusercontent.com/u/9163226?v=3","gravatar_id":"","url":"https://api.github.com/users/magalno","html_url":"https://github.com/magalno","followers_url":"https://api.github.com/users/magalno/followers","following_url":"https://api.github.com/users/magalno/following{/other_user}","gists_url":"https://api.github.com/users/magalno/gists{/gist_id}","starred_url":"https://api.github.com/users/magalno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magalno/subscriptions","organizations_url":"https://api.github.com/users/magalno/orgs","repos_url":"https://api.github.com/users/magalno/repos","events_url":"https://api.github.com/users/magalno/events{/privacy}","received_events_url":"https://api.github.com/users/magalno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/magalno/libcsp","description":"Cubesat Space Protocol - A small network-layer delivery protocol designed for Cubesats","fork":true,"url":"https://api.github.com/repos/magalno/libcsp","forks_url":"https://api.github.com/repos/magalno/libcsp/forks","keys_url":"https://api.github.com/repos/magalno/libcsp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magalno/libcsp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magalno/libcsp/teams","hooks_url":"https://api.github.com/repos/magalno/libcsp/hooks","issue_events_url":"https://api.github.com/repos/magalno/libcsp/issues/events{/number}","events_url":"https://api.github.com/repos/magalno/libcsp/events","assignees_url":"https://api.github.com/repos/magalno/libcsp/assignees{/user}","branches_url":"https://api.github.com/repos/magalno/libcsp/branches{/branch}","tags_url":"https://api.github.com/repos/magalno/libcsp/tags","blobs_url":"https://api.github.com/repos/magalno/libcsp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magalno/libcsp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magalno/libcsp/git/refs{/sha}","trees_url":"https://api.github.com/repos/magalno/libcsp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magalno/libcsp/statuses/{sha}","languages_url":"https://api.github.com/repos/magalno/libcsp/languages","stargazers_url":"https://api.github.com/repos/magalno/libcsp/stargazers","contributors_url":"https://api.github.com/repos/magalno/libcsp/contributors","subscribers_url":"https://api.github.com/repos/magalno/libcsp/subscribers","subscription_url":"https://api.github.com/repos/magalno/libcsp/subscription","commits_url":"https://api.github.com/repos/magalno/libcsp/commits{/sha}","git_commits_url":"https://api.github.com/repos/magalno/libcsp/git/commits{/sha}","comments_url":"https://api.github.com/repos/magalno/libcsp/comments{/number}","issue_comment_url":"https://api.github.com/repos/magalno/libcsp/issues/comments{/number}","contents_url":"https://api.github.com/repos/magalno/libcsp/contents/{+path}","compare_url":"https://api.github.com/repos/magalno/libcsp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magalno/libcsp/merges","archive_url":"https://api.github.com/repos/magalno/libcsp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magalno/libcsp/downloads","issues_url":"https://api.github.com/repos/magalno/libcsp/issues{/number}","pulls_url":"https://api.github.com/repos/magalno/libcsp/pulls{/number}","milestones_url":"https://api.github.com/repos/magalno/libcsp/milestones{/number}","notifications_url":"https://api.github.com/repos/magalno/libcsp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magalno/libcsp/labels{/name}","releases_url":"https://api.github.com/repos/magalno/libcsp/releases{/id}","deployments_url":"https://api.github.com/repos/magalno/libcsp/deployments","created_at":"2016-03-14T14:15:28Z","updated_at":"2016-03-14T14:15:29Z","pushed_at":"2016-03-17T23:37:36Z","git_url":"git://github.com/magalno/libcsp.git","ssh_url":"git@github.com:magalno/libcsp.git","clone_url":"https://github.com/magalno/libcsp.git","svn_url":"https://github.com/magalno/libcsp","homepage":"http://www.libcsp.org","size":1891,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GomSpace:master","ref":"master","sha":"3a092eab2cd5a8f363bcf72148a38571a86f385a","user":{"login":"GomSpace","id":545266,"avatar_url":"https://avatars.githubusercontent.com/u/545266?v=3","gravatar_id":"","url":"https://api.github.com/users/GomSpace","html_url":"https://github.com/GomSpace","followers_url":"https://api.github.com/users/GomSpace/followers","following_url":"https://api.github.com/users/GomSpace/following{/other_user}","gists_url":"https://api.github.com/users/GomSpace/gists{/gist_id}","starred_url":"https://api.github.com/users/GomSpace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GomSpace/subscriptions","organizations_url":"https://api.github.com/users/GomSpace/orgs","repos_url":"https://api.github.com/users/GomSpace/repos","events_url":"https://api.github.com/users/GomSpace/events{/privacy}","received_events_url":"https://api.github.com/users/GomSpace/received_events","type":"Organization","site_admin":false},"repo":{"id":2531772,"name":"libcsp","full_name":"GomSpace/libcsp","owner":{"login":"GomSpace","id":545266,"avatar_url":"https://avatars.githubusercontent.com/u/545266?v=3","gravatar_id":"","url":"https://api.github.com/users/GomSpace","html_url":"https://github.com/GomSpace","followers_url":"https://api.github.com/users/GomSpace/followers","following_url":"https://api.github.com/users/GomSpace/following{/other_user}","gists_url":"https://api.github.com/users/GomSpace/gists{/gist_id}","starred_url":"https://api.github.com/users/GomSpace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GomSpace/subscriptions","organizations_url":"https://api.github.com/users/GomSpace/orgs","repos_url":"https://api.github.com/users/GomSpace/repos","events_url":"https://api.github.com/users/GomSpace/events{/privacy}","received_events_url":"https://api.github.com/users/GomSpace/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GomSpace/libcsp","description":"Cubesat Space Protocol - A small network-layer delivery protocol designed for Cubesats","fork":false,"url":"https://api.github.com/repos/GomSpace/libcsp","forks_url":"https://api.github.com/repos/GomSpace/libcsp/forks","keys_url":"https://api.github.com/repos/GomSpace/libcsp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GomSpace/libcsp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GomSpace/libcsp/teams","hooks_url":"https://api.github.com/repos/GomSpace/libcsp/hooks","issue_events_url":"https://api.github.com/repos/GomSpace/libcsp/issues/events{/number}","events_url":"https://api.github.com/repos/GomSpace/libcsp/events","assignees_url":"https://api.github.com/repos/GomSpace/libcsp/assignees{/user}","branches_url":"https://api.github.com/repos/GomSpace/libcsp/branches{/branch}","tags_url":"https://api.github.com/repos/GomSpace/libcsp/tags","blobs_url":"https://api.github.com/repos/GomSpace/libcsp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GomSpace/libcsp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GomSpace/libcsp/git/refs{/sha}","trees_url":"https://api.github.com/repos/GomSpace/libcsp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GomSpace/libcsp/statuses/{sha}","languages_url":"https://api.github.com/repos/GomSpace/libcsp/languages","stargazers_url":"https://api.github.com/repos/GomSpace/libcsp/stargazers","contributors_url":"https://api.github.com/repos/GomSpace/libcsp/contributors","subscribers_url":"https://api.github.com/repos/GomSpace/libcsp/subscribers","subscription_url":"https://api.github.com/repos/GomSpace/libcsp/subscription","commits_url":"https://api.github.com/repos/GomSpace/libcsp/commits{/sha}","git_commits_url":"https://api.github.com/repos/GomSpace/libcsp/git/commits{/sha}","comments_url":"https://api.github.com/repos/GomSpace/libcsp/comments{/number}","issue_comment_url":"https://api.github.com/repos/GomSpace/libcsp/issues/comments{/number}","contents_url":"https://api.github.com/repos/GomSpace/libcsp/contents/{+path}","compare_url":"https://api.github.com/repos/GomSpace/libcsp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GomSpace/libcsp/merges","archive_url":"https://api.github.com/repos/GomSpace/libcsp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GomSpace/libcsp/downloads","issues_url":"https://api.github.com/repos/GomSpace/libcsp/issues{/number}","pulls_url":"https://api.github.com/repos/GomSpace/libcsp/pulls{/number}","milestones_url":"https://api.github.com/repos/GomSpace/libcsp/milestones{/number}","notifications_url":"https://api.github.com/repos/GomSpace/libcsp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GomSpace/libcsp/labels{/name}","releases_url":"https://api.github.com/repos/GomSpace/libcsp/releases{/id}","deployments_url":"https://api.github.com/repos/GomSpace/libcsp/deployments","created_at":"2011-10-07T10:35:34Z","updated_at":"2016-03-28T13:51:41Z","pushed_at":"2016-03-29T14:30:55Z","git_url":"git://github.com/GomSpace/libcsp.git","ssh_url":"git@github.com:GomSpace/libcsp.git","clone_url":"https://github.com/GomSpace/libcsp.git","svn_url":"https://github.com/GomSpace/libcsp","homepage":"http://www.libcsp.org","size":2340,"stargazers_count":87,"watchers_count":87,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":15,"forks":52,"open_issues":15,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GomSpace/libcsp/pulls/67"},"html":{"href":"https://github.com/GomSpace/libcsp/pull/67"},"issue":{"href":"https://api.github.com/repos/GomSpace/libcsp/issues/67"},"comments":{"href":"https://api.github.com/repos/GomSpace/libcsp/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/GomSpace/libcsp/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/GomSpace/libcsp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GomSpace/libcsp/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/GomSpace/libcsp/statuses/730b42692e144fc9de2254e7f7d585e972cd231b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":3,"additions":13,"deletions":2,"changed_files":4}}