{"action":"created","comment":{"url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/comments/43568488","id":43568488,"diff_hunk":"@@ -24,3 +24,16 @@ func TestMemUnmap(t *testing.T) {\n \t\tt.Fatal(fmt.Errorf(\"Expected ERR_WRITE_UNMAPPED, got: %v\", err))\n \t}\n }\n+\n+func TestDoubleClose(t *testing.T) {\n+\tmu, err := NewUnicorn(ARCH_X86, MODE_32)","path":"bindings/go/unicorn/unicorn_test.go","position":6,"original_position":6,"commit_id":"a6ffb71e4cc4a319656d1fff4f61f8522a54b837","original_commit_id":"a6ffb71e4cc4a319656d1fff4f61f8522a54b837","user":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"body":"No. Unicorn is the type. New<Type>() is the idiomatic Go convention.","created_at":"2015-10-31T05:36:11Z","updated_at":"2015-10-31T05:36:11Z","html_url":"https://github.com/unicorn-engine/unicorn/pull/231#discussion_r43568488","pull_request_url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231","_links":{"self":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/comments/43568488"},"html":{"href":"https://github.com/unicorn-engine/unicorn/pull/231#discussion_r43568488"},"pull_request":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231"}}},"pull_request":{"url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231","id":49342228,"html_url":"https://github.com/unicorn-engine/unicorn/pull/231","diff_url":"https://github.com/unicorn-engine/unicorn/pull/231.diff","patch_url":"https://github.com/unicorn-engine/unicorn/pull/231.patch","issue_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/231","number":231,"state":"open","locked":false,"title":"Go bindings: add Close() and set as GC finalizer (fix #230)","user":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-31T05:17:22Z","updated_at":"2015-10-31T05:36:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"650f234fa0a01cbca85412ab338020a02af39cce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231/commits","review_comments_url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231/comments","review_comment_url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/231/comments","statuses_url":"https://api.github.com/repos/unicorn-engine/unicorn/statuses/a6ffb71e4cc4a319656d1fff4f61f8522a54b837","head":{"label":"lunixbochs:master","ref":"master","sha":"a6ffb71e4cc4a319656d1fff4f61f8522a54b837","user":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"repo":{"id":44385442,"name":"unicorn","full_name":"lunixbochs/unicorn","owner":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lunixbochs/unicorn","description":"Unicorn CPU emulator engine","fork":true,"url":"https://api.github.com/repos/lunixbochs/unicorn","forks_url":"https://api.github.com/repos/lunixbochs/unicorn/forks","keys_url":"https://api.github.com/repos/lunixbochs/unicorn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunixbochs/unicorn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunixbochs/unicorn/teams","hooks_url":"https://api.github.com/repos/lunixbochs/unicorn/hooks","issue_events_url":"https://api.github.com/repos/lunixbochs/unicorn/issues/events{/number}","events_url":"https://api.github.com/repos/lunixbochs/unicorn/events","assignees_url":"https://api.github.com/repos/lunixbochs/unicorn/assignees{/user}","branches_url":"https://api.github.com/repos/lunixbochs/unicorn/branches{/branch}","tags_url":"https://api.github.com/repos/lunixbochs/unicorn/tags","blobs_url":"https://api.github.com/repos/lunixbochs/unicorn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunixbochs/unicorn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunixbochs/unicorn/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunixbochs/unicorn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunixbochs/unicorn/statuses/{sha}","languages_url":"https://api.github.com/repos/lunixbochs/unicorn/languages","stargazers_url":"https://api.github.com/repos/lunixbochs/unicorn/stargazers","contributors_url":"https://api.github.com/repos/lunixbochs/unicorn/contributors","subscribers_url":"https://api.github.com/repos/lunixbochs/unicorn/subscribers","subscription_url":"https://api.github.com/repos/lunixbochs/unicorn/subscription","commits_url":"https://api.github.com/repos/lunixbochs/unicorn/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunixbochs/unicorn/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunixbochs/unicorn/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunixbochs/unicorn/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunixbochs/unicorn/contents/{+path}","compare_url":"https://api.github.com/repos/lunixbochs/unicorn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunixbochs/unicorn/merges","archive_url":"https://api.github.com/repos/lunixbochs/unicorn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunixbochs/unicorn/downloads","issues_url":"https://api.github.com/repos/lunixbochs/unicorn/issues{/number}","pulls_url":"https://api.github.com/repos/lunixbochs/unicorn/pulls{/number}","milestones_url":"https://api.github.com/repos/lunixbochs/unicorn/milestones{/number}","notifications_url":"https://api.github.com/repos/lunixbochs/unicorn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunixbochs/unicorn/labels{/name}","releases_url":"https://api.github.com/repos/lunixbochs/unicorn/releases{/id}","created_at":"2015-10-16T13:00:52Z","updated_at":"2015-10-16T13:00:55Z","pushed_at":"2015-10-31T05:11:04Z","git_url":"git://github.com/lunixbochs/unicorn.git","ssh_url":"git@github.com:lunixbochs/unicorn.git","clone_url":"https://github.com/lunixbochs/unicorn.git","svn_url":"https://github.com/lunixbochs/unicorn","homepage":"http://www.unicorn-engine.org","size":3499,"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":"unicorn-engine:master","ref":"master","sha":"b41db5abd919bec2638eec0ce67e106336e5f075","user":{"login":"unicorn-engine","id":13391512,"avatar_url":"https://avatars.githubusercontent.com/u/13391512?v=3","gravatar_id":"","url":"https://api.github.com/users/unicorn-engine","html_url":"https://github.com/unicorn-engine","followers_url":"https://api.github.com/users/unicorn-engine/followers","following_url":"https://api.github.com/users/unicorn-engine/following{/other_user}","gists_url":"https://api.github.com/users/unicorn-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/unicorn-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unicorn-engine/subscriptions","organizations_url":"https://api.github.com/users/unicorn-engine/orgs","repos_url":"https://api.github.com/users/unicorn-engine/repos","events_url":"https://api.github.com/users/unicorn-engine/events{/privacy}","received_events_url":"https://api.github.com/users/unicorn-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":41107037,"name":"unicorn","full_name":"unicorn-engine/unicorn","owner":{"login":"unicorn-engine","id":13391512,"avatar_url":"https://avatars.githubusercontent.com/u/13391512?v=3","gravatar_id":"","url":"https://api.github.com/users/unicorn-engine","html_url":"https://github.com/unicorn-engine","followers_url":"https://api.github.com/users/unicorn-engine/followers","following_url":"https://api.github.com/users/unicorn-engine/following{/other_user}","gists_url":"https://api.github.com/users/unicorn-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/unicorn-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unicorn-engine/subscriptions","organizations_url":"https://api.github.com/users/unicorn-engine/orgs","repos_url":"https://api.github.com/users/unicorn-engine/repos","events_url":"https://api.github.com/users/unicorn-engine/events{/privacy}","received_events_url":"https://api.github.com/users/unicorn-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unicorn-engine/unicorn","description":"Unicorn CPU emulator engine","fork":false,"url":"https://api.github.com/repos/unicorn-engine/unicorn","forks_url":"https://api.github.com/repos/unicorn-engine/unicorn/forks","keys_url":"https://api.github.com/repos/unicorn-engine/unicorn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unicorn-engine/unicorn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unicorn-engine/unicorn/teams","hooks_url":"https://api.github.com/repos/unicorn-engine/unicorn/hooks","issue_events_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/events{/number}","events_url":"https://api.github.com/repos/unicorn-engine/unicorn/events","assignees_url":"https://api.github.com/repos/unicorn-engine/unicorn/assignees{/user}","branches_url":"https://api.github.com/repos/unicorn-engine/unicorn/branches{/branch}","tags_url":"https://api.github.com/repos/unicorn-engine/unicorn/tags","blobs_url":"https://api.github.com/repos/unicorn-engine/unicorn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unicorn-engine/unicorn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unicorn-engine/unicorn/git/refs{/sha}","trees_url":"https://api.github.com/repos/unicorn-engine/unicorn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unicorn-engine/unicorn/statuses/{sha}","languages_url":"https://api.github.com/repos/unicorn-engine/unicorn/languages","stargazers_url":"https://api.github.com/repos/unicorn-engine/unicorn/stargazers","contributors_url":"https://api.github.com/repos/unicorn-engine/unicorn/contributors","subscribers_url":"https://api.github.com/repos/unicorn-engine/unicorn/subscribers","subscription_url":"https://api.github.com/repos/unicorn-engine/unicorn/subscription","commits_url":"https://api.github.com/repos/unicorn-engine/unicorn/commits{/sha}","git_commits_url":"https://api.github.com/repos/unicorn-engine/unicorn/git/commits{/sha}","comments_url":"https://api.github.com/repos/unicorn-engine/unicorn/comments{/number}","issue_comment_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/comments{/number}","contents_url":"https://api.github.com/repos/unicorn-engine/unicorn/contents/{+path}","compare_url":"https://api.github.com/repos/unicorn-engine/unicorn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unicorn-engine/unicorn/merges","archive_url":"https://api.github.com/repos/unicorn-engine/unicorn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unicorn-engine/unicorn/downloads","issues_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues{/number}","pulls_url":"https://api.github.com/repos/unicorn-engine/unicorn/pulls{/number}","milestones_url":"https://api.github.com/repos/unicorn-engine/unicorn/milestones{/number}","notifications_url":"https://api.github.com/repos/unicorn-engine/unicorn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unicorn-engine/unicorn/labels{/name}","releases_url":"https://api.github.com/repos/unicorn-engine/unicorn/releases{/id}","created_at":"2015-08-20T16:35:45Z","updated_at":"2015-10-31T03:04:01Z","pushed_at":"2015-10-31T05:17:22Z","git_url":"git://github.com/unicorn-engine/unicorn.git","ssh_url":"git@github.com:unicorn-engine/unicorn.git","clone_url":"https://github.com/unicorn-engine/unicorn.git","svn_url":"https://github.com/unicorn-engine/unicorn","homepage":"http://www.unicorn-engine.org","size":4617,"stargazers_count":354,"watchers_count":354,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":37,"forks":48,"open_issues":37,"watchers":354,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231"},"html":{"href":"https://github.com/unicorn-engine/unicorn/pull/231"},"issue":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/issues/231"},"comments":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/unicorn-engine/unicorn/statuses/a6ffb71e4cc4a319656d1fff4f61f8522a54b837"}}}}