{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4488","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4488/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4488/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4488/events","html_url":"https://github.com/astropy/astropy/pull/4488","id":126644628,"number":4488,"title":"Fix argument of `wcshdr_err_to_python_exc()`","user":{"login":"olebole","id":397223,"avatar_url":"https://avatars.githubusercontent.com/u/397223?v=3","gravatar_id":"","url":"https://api.github.com/users/olebole","html_url":"https://github.com/olebole","followers_url":"https://api.github.com/users/olebole/followers","following_url":"https://api.github.com/users/olebole/following{/other_user}","gists_url":"https://api.github.com/users/olebole/gists{/gist_id}","starred_url":"https://api.github.com/users/olebole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olebole/subscriptions","organizations_url":"https://api.github.com/users/olebole/orgs","repos_url":"https://api.github.com/users/olebole/repos","events_url":"https://api.github.com/users/olebole/events{/privacy}","received_events_url":"https://api.github.com/users/olebole/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Affects-dev","name":"Affects-dev","color":"eb6420"},{"url":"https://api.github.com/repos/astropy/astropy/labels/wcs","name":"wcs","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/35","html_url":"https://github.com/astropy/astropy/milestones/v1.1.2","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/35/labels","id":1490290,"number":35,"title":"v1.1.2","description":"","creator":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":1,"state":"open","created_at":"2016-01-07T20:15:46Z","updated_at":"2016-01-14T16:19:13Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-14T12:23:35Z","updated_at":"2016-01-14T16:19:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/4488","html_url":"https://github.com/astropy/astropy/pull/4488","diff_url":"https://github.com/astropy/astropy/pull/4488.diff","patch_url":"https://github.com/astropy/astropy/pull/4488.patch"},"body":"The function takes the return value of `wcspih()`/`wcsbth()`, not the error code stored in the `wcs` structure. \r\n\r\nI also wonder whether a `wcsvfree(&nwcs, &wcs);` is needed in each block to avoid a memory leak."},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/171688242","html_url":"https://github.com/astropy/astropy/pull/4488#issuecomment-171688242","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4488","id":171688242,"user":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T16:19:34Z","updated_at":"2016-01-14T16:19:34Z","body":"Makes sense to me.  I don't know enough about this code to comment on the wcsvfree question though."}}