{"action":"created","issue":{"url":"https://api.github.com/repos/lfittl/libpg_query/issues/2","labels_url":"https://api.github.com/repos/lfittl/libpg_query/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lfittl/libpg_query/issues/2/comments","events_url":"https://api.github.com/repos/lfittl/libpg_query/issues/2/events","html_url":"https://github.com/lfittl/libpg_query/pull/2","id":116933237,"number":2,"title":"Add API for free'ing results","user":{"login":"zhm","id":89634,"avatar_url":"https://avatars.githubusercontent.com/u/89634?v=3","gravatar_id":"","url":"https://api.github.com/users/zhm","html_url":"https://github.com/zhm","followers_url":"https://api.github.com/users/zhm/followers","following_url":"https://api.github.com/users/zhm/following{/other_user}","gists_url":"https://api.github.com/users/zhm/gists{/gist_id}","starred_url":"https://api.github.com/users/zhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhm/subscriptions","organizations_url":"https://api.github.com/users/zhm/orgs","repos_url":"https://api.github.com/users/zhm/repos","events_url":"https://api.github.com/users/zhm/events{/privacy}","received_events_url":"https://api.github.com/users/zhm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lfittl/libpg_query/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-14T15:32:12Z","updated_at":"2015-11-15T22:49:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lfittl/libpg_query/pulls/2","html_url":"https://github.com/lfittl/libpg_query/pull/2","diff_url":"https://github.com/lfittl/libpg_query/pull/2.diff","patch_url":"https://github.com/lfittl/libpg_query/pull/2.patch"},"body":"This patch adds a public API for `free()`ing the results from the parse and normalize functions. This allows the caller to only need to use 1 function to clean up the results of the functions and also lets the library expand the result structures without creating leaks in the calling program.\r\n\r\nThis is mostly a suggestion of an API, I wanted to push it to get feedback. This patch also includes #1.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/lfittl/libpg_query/issues/comments/156866449","html_url":"https://github.com/lfittl/libpg_query/pull/2#issuecomment-156866449","issue_url":"https://api.github.com/repos/lfittl/libpg_query/issues/2","id":156866449,"user":{"login":"lfittl","id":7227,"avatar_url":"https://avatars.githubusercontent.com/u/7227?v=3","gravatar_id":"","url":"https://api.github.com/users/lfittl","html_url":"https://github.com/lfittl","followers_url":"https://api.github.com/users/lfittl/followers","following_url":"https://api.github.com/users/lfittl/following{/other_user}","gists_url":"https://api.github.com/users/lfittl/gists{/gist_id}","starred_url":"https://api.github.com/users/lfittl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfittl/subscriptions","organizations_url":"https://api.github.com/users/lfittl/orgs","repos_url":"https://api.github.com/users/lfittl/repos","events_url":"https://api.github.com/users/lfittl/events{/privacy}","received_events_url":"https://api.github.com/users/lfittl/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T22:49:08Z","updated_at":"2015-11-15T22:49:08Z","body":"Looks good, thanks for the contribution!"}}