{"action":"created","comment":{"url":"https://api.github.com/repos/solettaproject/soletta/pulls/comments/33627307","id":33627307,"diff_hunk":"@@ -99,6 +99,7 @@ sol_i2c_open_raw(uint8_t bus, enum sol_i2c_speed speed)\n     return i2c;\n \n open_error:\n+    close(i2c->dev);","path":"src/shared/sol-i2c-linux.c","position":13,"original_position":13,"commit_id":"90cb1b57ced2734b374c9916036af3732e9224a6","original_commit_id":"90cb1b57ced2734b374c9916036af3732e9224a6","user":{"login":"lpereira","id":15001,"avatar_url":"https://avatars.githubusercontent.com/u/15001?v=3","gravatar_id":"","url":"https://api.github.com/users/lpereira","html_url":"https://github.com/lpereira","followers_url":"https://api.github.com/users/lpereira/followers","following_url":"https://api.github.com/users/lpereira/following{/other_user}","gists_url":"https://api.github.com/users/lpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/lpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpereira/subscriptions","organizations_url":"https://api.github.com/users/lpereira/orgs","repos_url":"https://api.github.com/users/lpereira/repos","events_url":"https://api.github.com/users/lpereira/events{/privacy}","received_events_url":"https://api.github.com/users/lpereira/received_events","type":"User","site_admin":false},"body":"If `open()` fails, this will attempt to close an undefined file descriptor.","created_at":"2015-06-30T21:43:16Z","updated_at":"2015-06-30T21:43:16Z","html_url":"https://github.com/solettaproject/soletta/pull/159#discussion_r33627307","pull_request_url":"https://api.github.com/repos/solettaproject/soletta/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/comments/33627307"},"html":{"href":"https://github.com/solettaproject/soletta/pull/159#discussion_r33627307"},"pull_request":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/solettaproject/soletta/pulls/159","id":38914892,"html_url":"https://github.com/solettaproject/soletta/pull/159","diff_url":"https://github.com/solettaproject/soletta/pull/159.diff","patch_url":"https://github.com/solettaproject/soletta/pull/159.patch","issue_url":"https://api.github.com/repos/solettaproject/soletta/issues/159","number":159,"state":"open","locked":false,"title":"I2c small fixes","user":{"login":"anselmolsm","id":136474,"avatar_url":"https://avatars.githubusercontent.com/u/136474?v=3","gravatar_id":"","url":"https://api.github.com/users/anselmolsm","html_url":"https://github.com/anselmolsm","followers_url":"https://api.github.com/users/anselmolsm/followers","following_url":"https://api.github.com/users/anselmolsm/following{/other_user}","gists_url":"https://api.github.com/users/anselmolsm/gists{/gist_id}","starred_url":"https://api.github.com/users/anselmolsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anselmolsm/subscriptions","organizations_url":"https://api.github.com/users/anselmolsm/orgs","repos_url":"https://api.github.com/users/anselmolsm/repos","events_url":"https://api.github.com/users/anselmolsm/events{/privacy}","received_events_url":"https://api.github.com/users/anselmolsm/received_events","type":"User","site_admin":false},"body":"The first commit fixes a KW complaint.\r\nThe second patch is to follow the ioctl doc.","created_at":"2015-06-30T19:26:52Z","updated_at":"2015-06-30T21:43:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4115e03ed847a27d24bd62f4d9ea14de97c8e87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/solettaproject/soletta/pulls/159/commits","review_comments_url":"https://api.github.com/repos/solettaproject/soletta/pulls/159/comments","review_comment_url":"https://api.github.com/repos/solettaproject/soletta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solettaproject/soletta/issues/159/comments","statuses_url":"https://api.github.com/repos/solettaproject/soletta/statuses/90cb1b57ced2734b374c9916036af3732e9224a6","head":{"label":"anselmolsm:i2c","ref":"i2c","sha":"90cb1b57ced2734b374c9916036af3732e9224a6","user":{"login":"anselmolsm","id":136474,"avatar_url":"https://avatars.githubusercontent.com/u/136474?v=3","gravatar_id":"","url":"https://api.github.com/users/anselmolsm","html_url":"https://github.com/anselmolsm","followers_url":"https://api.github.com/users/anselmolsm/followers","following_url":"https://api.github.com/users/anselmolsm/following{/other_user}","gists_url":"https://api.github.com/users/anselmolsm/gists{/gist_id}","starred_url":"https://api.github.com/users/anselmolsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anselmolsm/subscriptions","organizations_url":"https://api.github.com/users/anselmolsm/orgs","repos_url":"https://api.github.com/users/anselmolsm/repos","events_url":"https://api.github.com/users/anselmolsm/events{/privacy}","received_events_url":"https://api.github.com/users/anselmolsm/received_events","type":"User","site_admin":false},"repo":{"id":37610275,"name":"soletta","full_name":"anselmolsm/soletta","owner":{"login":"anselmolsm","id":136474,"avatar_url":"https://avatars.githubusercontent.com/u/136474?v=3","gravatar_id":"","url":"https://api.github.com/users/anselmolsm","html_url":"https://github.com/anselmolsm","followers_url":"https://api.github.com/users/anselmolsm/followers","following_url":"https://api.github.com/users/anselmolsm/following{/other_user}","gists_url":"https://api.github.com/users/anselmolsm/gists{/gist_id}","starred_url":"https://api.github.com/users/anselmolsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anselmolsm/subscriptions","organizations_url":"https://api.github.com/users/anselmolsm/orgs","repos_url":"https://api.github.com/users/anselmolsm/repos","events_url":"https://api.github.com/users/anselmolsm/events{/privacy}","received_events_url":"https://api.github.com/users/anselmolsm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anselmolsm/soletta","description":"Soletta Project is a framework for making IoT devices.  With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.  Portable and scalable, it abstracts details of hardware and OS, enabling developers to reuse their code and knowledge on different targets.","fork":true,"url":"https://api.github.com/repos/anselmolsm/soletta","forks_url":"https://api.github.com/repos/anselmolsm/soletta/forks","keys_url":"https://api.github.com/repos/anselmolsm/soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anselmolsm/soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anselmolsm/soletta/teams","hooks_url":"https://api.github.com/repos/anselmolsm/soletta/hooks","issue_events_url":"https://api.github.com/repos/anselmolsm/soletta/issues/events{/number}","events_url":"https://api.github.com/repos/anselmolsm/soletta/events","assignees_url":"https://api.github.com/repos/anselmolsm/soletta/assignees{/user}","branches_url":"https://api.github.com/repos/anselmolsm/soletta/branches{/branch}","tags_url":"https://api.github.com/repos/anselmolsm/soletta/tags","blobs_url":"https://api.github.com/repos/anselmolsm/soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anselmolsm/soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anselmolsm/soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/anselmolsm/soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anselmolsm/soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/anselmolsm/soletta/languages","stargazers_url":"https://api.github.com/repos/anselmolsm/soletta/stargazers","contributors_url":"https://api.github.com/repos/anselmolsm/soletta/contributors","subscribers_url":"https://api.github.com/repos/anselmolsm/soletta/subscribers","subscription_url":"https://api.github.com/repos/anselmolsm/soletta/subscription","commits_url":"https://api.github.com/repos/anselmolsm/soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/anselmolsm/soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/anselmolsm/soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/anselmolsm/soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/anselmolsm/soletta/contents/{+path}","compare_url":"https://api.github.com/repos/anselmolsm/soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anselmolsm/soletta/merges","archive_url":"https://api.github.com/repos/anselmolsm/soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anselmolsm/soletta/downloads","issues_url":"https://api.github.com/repos/anselmolsm/soletta/issues{/number}","pulls_url":"https://api.github.com/repos/anselmolsm/soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/anselmolsm/soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/anselmolsm/soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anselmolsm/soletta/labels{/name}","releases_url":"https://api.github.com/repos/anselmolsm/soletta/releases{/id}","created_at":"2015-06-17T17:34:24Z","updated_at":"2015-06-17T17:34:25Z","pushed_at":"2015-06-30T20:25:19Z","git_url":"git://github.com/anselmolsm/soletta.git","ssh_url":"git@github.com:anselmolsm/soletta.git","clone_url":"https://github.com/anselmolsm/soletta.git","svn_url":"https://github.com/anselmolsm/soletta","homepage":"","size":1252,"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":"solettaproject:master","ref":"master","sha":"c68eba79a849f1b2579d32e3471bb7464e39472d","user":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":37087063,"name":"soletta","full_name":"solettaproject/soletta","owner":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solettaproject/soletta","description":"Soletta Project is a framework for making IoT devices.  With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.  ","fork":false,"url":"https://api.github.com/repos/solettaproject/soletta","forks_url":"https://api.github.com/repos/solettaproject/soletta/forks","keys_url":"https://api.github.com/repos/solettaproject/soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solettaproject/soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solettaproject/soletta/teams","hooks_url":"https://api.github.com/repos/solettaproject/soletta/hooks","issue_events_url":"https://api.github.com/repos/solettaproject/soletta/issues/events{/number}","events_url":"https://api.github.com/repos/solettaproject/soletta/events","assignees_url":"https://api.github.com/repos/solettaproject/soletta/assignees{/user}","branches_url":"https://api.github.com/repos/solettaproject/soletta/branches{/branch}","tags_url":"https://api.github.com/repos/solettaproject/soletta/tags","blobs_url":"https://api.github.com/repos/solettaproject/soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solettaproject/soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solettaproject/soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/solettaproject/soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solettaproject/soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/solettaproject/soletta/languages","stargazers_url":"https://api.github.com/repos/solettaproject/soletta/stargazers","contributors_url":"https://api.github.com/repos/solettaproject/soletta/contributors","subscribers_url":"https://api.github.com/repos/solettaproject/soletta/subscribers","subscription_url":"https://api.github.com/repos/solettaproject/soletta/subscription","commits_url":"https://api.github.com/repos/solettaproject/soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/solettaproject/soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/solettaproject/soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/solettaproject/soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/solettaproject/soletta/contents/{+path}","compare_url":"https://api.github.com/repos/solettaproject/soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solettaproject/soletta/merges","archive_url":"https://api.github.com/repos/solettaproject/soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solettaproject/soletta/downloads","issues_url":"https://api.github.com/repos/solettaproject/soletta/issues{/number}","pulls_url":"https://api.github.com/repos/solettaproject/soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/solettaproject/soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/solettaproject/soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solettaproject/soletta/labels{/name}","releases_url":"https://api.github.com/repos/solettaproject/soletta/releases{/id}","created_at":"2015-06-08T19:13:18Z","updated_at":"2015-06-26T14:19:47Z","pushed_at":"2015-06-30T21:11:00Z","git_url":"git://github.com/solettaproject/soletta.git","ssh_url":"git@github.com:solettaproject/soletta.git","clone_url":"https://github.com/solettaproject/soletta.git","svn_url":"https://github.com/solettaproject/soletta","homepage":"","size":3080,"stargazers_count":33,"watchers_count":33,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":23,"forks":26,"open_issues":23,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/159"},"html":{"href":"https://github.com/solettaproject/soletta/pull/159"},"issue":{"href":"https://api.github.com/repos/solettaproject/soletta/issues/159"},"comments":{"href":"https://api.github.com/repos/solettaproject/soletta/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/solettaproject/soletta/statuses/90cb1b57ced2734b374c9916036af3732e9224a6"}}}}