{"action":"created","comment":{"url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/comments/63359072","id":63359072,"diff_hunk":"@@ -218,14 +270,22 @@ void app_gps_thread(void *data)\n                 {\n                     case CMD_THREAD_LOCATION:\n                         LOG_DEBUG(\"gps get CMD_THREAD_LOCATION.\");\n-                        location_handler(CMD_THREAD_LOCATION);\n+                        location_handler(msg->cmd);\n                         free((void*)msg);\n                         break;\n \n                     case CMD_THREAD_ITINERARY:\n                         LOG_DEBUG(\"gps get CMD_THREAD_ITINERARY.\");\n                         gps_ItinerarayHandler(msg);\n+                        free((void*)msg);","path":"user/gps/gps.c","position":73,"original_position":73,"commit_id":"08d3f9b04f6d3a88828d83c4ce372a609eda67d4","original_commit_id":"08d3f9b04f6d3a88828d83c4ce372a609eda67d4","user":{"login":"jerky168","id":3837781,"avatar_url":"https://avatars.githubusercontent.com/u/3837781?v=3","gravatar_id":"","url":"https://api.github.com/users/jerky168","html_url":"https://github.com/jerky168","followers_url":"https://api.github.com/users/jerky168/followers","following_url":"https://api.github.com/users/jerky168/following{/other_user}","gists_url":"https://api.github.com/users/jerky168/gists{/gist_id}","starred_url":"https://api.github.com/users/jerky168/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerky168/subscriptions","organizations_url":"https://api.github.com/users/jerky168/orgs","repos_url":"https://api.github.com/users/jerky168/repos","events_url":"https://api.github.com/users/jerky168/events{/privacy}","received_events_url":"https://api.github.com/users/jerky168/received_events","type":"User","site_admin":false},"body":"对于消息释放统一用freeMsg","created_at":"2016-05-16T14:11:32Z","updated_at":"2016-05-16T14:11:32Z","html_url":"https://github.com/xunce/Electrombile_Firmware/pull/55#discussion_r63359072","pull_request_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/comments/63359072"},"html":{"href":"https://github.com/xunce/Electrombile_Firmware/pull/55#discussion_r63359072"},"pull_request":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55","id":70161163,"html_url":"https://github.com/xunce/Electrombile_Firmware/pull/55","diff_url":"https://github.com/xunce/Electrombile_Firmware/pull/55.diff","patch_url":"https://github.com/xunce/Electrombile_Firmware/pull/55.patch","issue_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/55","number":55,"state":"open","locked":false,"title":"Feature/newprotocol","user":{"login":"lc641777437","id":15700213,"avatar_url":"https://avatars.githubusercontent.com/u/15700213?v=3","gravatar_id":"","url":"https://api.github.com/users/lc641777437","html_url":"https://github.com/lc641777437","followers_url":"https://api.github.com/users/lc641777437/followers","following_url":"https://api.github.com/users/lc641777437/following{/other_user}","gists_url":"https://api.github.com/users/lc641777437/gists{/gist_id}","starred_url":"https://api.github.com/users/lc641777437/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lc641777437/subscriptions","organizations_url":"https://api.github.com/users/lc641777437/orgs","repos_url":"https://api.github.com/users/lc641777437/repos","events_url":"https://api.github.com/users/lc641777437/events{/privacy}","received_events_url":"https://api.github.com/users/lc641777437/received_events","type":"User","site_admin":false},"body":"PR newprotocol into develop","created_at":"2016-05-16T07:43:18Z","updated_at":"2016-05-16T14:11:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f67703d3f83401a016d6d173235c827133b9aad9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55/commits","review_comments_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55/comments","review_comment_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/55/comments","statuses_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/statuses/08d3f9b04f6d3a88828d83c4ce372a609eda67d4","head":{"label":"xunce:feature/newprotocol","ref":"feature/newprotocol","sha":"08d3f9b04f6d3a88828d83c4ce372a609eda67d4","user":{"login":"xunce","id":11502330,"avatar_url":"https://avatars.githubusercontent.com/u/11502330?v=3","gravatar_id":"","url":"https://api.github.com/users/xunce","html_url":"https://github.com/xunce","followers_url":"https://api.github.com/users/xunce/followers","following_url":"https://api.github.com/users/xunce/following{/other_user}","gists_url":"https://api.github.com/users/xunce/gists{/gist_id}","starred_url":"https://api.github.com/users/xunce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunce/subscriptions","organizations_url":"https://api.github.com/users/xunce/orgs","repos_url":"https://api.github.com/users/xunce/repos","events_url":"https://api.github.com/users/xunce/events{/privacy}","received_events_url":"https://api.github.com/users/xunce/received_events","type":"Organization","site_admin":false},"repo":{"id":37967477,"name":"Electrombile_Firmware","full_name":"xunce/Electrombile_Firmware","owner":{"login":"xunce","id":11502330,"avatar_url":"https://avatars.githubusercontent.com/u/11502330?v=3","gravatar_id":"","url":"https://api.github.com/users/xunce","html_url":"https://github.com/xunce","followers_url":"https://api.github.com/users/xunce/followers","following_url":"https://api.github.com/users/xunce/following{/other_user}","gists_url":"https://api.github.com/users/xunce/gists{/gist_id}","starred_url":"https://api.github.com/users/xunce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunce/subscriptions","organizations_url":"https://api.github.com/users/xunce/orgs","repos_url":"https://api.github.com/users/xunce/repos","events_url":"https://api.github.com/users/xunce/events{/privacy}","received_events_url":"https://api.github.com/users/xunce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xunce/Electrombile_Firmware","description":"Firmware of Electrombile","fork":false,"url":"https://api.github.com/repos/xunce/Electrombile_Firmware","forks_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/forks","keys_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/teams","hooks_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/hooks","issue_events_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/events{/number}","events_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/events","assignees_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/assignees{/user}","branches_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/branches{/branch}","tags_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/tags","blobs_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/languages","stargazers_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/stargazers","contributors_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/contributors","subscribers_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/subscribers","subscription_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/subscription","commits_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/contents/{+path}","compare_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/merges","archive_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/downloads","issues_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues{/number}","pulls_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/labels{/name}","releases_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/releases{/id}","deployments_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/deployments","created_at":"2015-06-24T06:47:03Z","updated_at":"2016-04-01T03:55:04Z","pushed_at":"2016-05-16T12:29:37Z","git_url":"git://github.com/xunce/Electrombile_Firmware.git","ssh_url":"git@github.com:xunce/Electrombile_Firmware.git","clone_url":"https://github.com/xunce/Electrombile_Firmware.git","svn_url":"https://github.com/xunce/Electrombile_Firmware","homepage":null,"size":20640,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"xunce:develop","ref":"develop","sha":"111f6bbaa71083ba113aefdf4e43321bb3b5fcc9","user":{"login":"xunce","id":11502330,"avatar_url":"https://avatars.githubusercontent.com/u/11502330?v=3","gravatar_id":"","url":"https://api.github.com/users/xunce","html_url":"https://github.com/xunce","followers_url":"https://api.github.com/users/xunce/followers","following_url":"https://api.github.com/users/xunce/following{/other_user}","gists_url":"https://api.github.com/users/xunce/gists{/gist_id}","starred_url":"https://api.github.com/users/xunce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunce/subscriptions","organizations_url":"https://api.github.com/users/xunce/orgs","repos_url":"https://api.github.com/users/xunce/repos","events_url":"https://api.github.com/users/xunce/events{/privacy}","received_events_url":"https://api.github.com/users/xunce/received_events","type":"Organization","site_admin":false},"repo":{"id":37967477,"name":"Electrombile_Firmware","full_name":"xunce/Electrombile_Firmware","owner":{"login":"xunce","id":11502330,"avatar_url":"https://avatars.githubusercontent.com/u/11502330?v=3","gravatar_id":"","url":"https://api.github.com/users/xunce","html_url":"https://github.com/xunce","followers_url":"https://api.github.com/users/xunce/followers","following_url":"https://api.github.com/users/xunce/following{/other_user}","gists_url":"https://api.github.com/users/xunce/gists{/gist_id}","starred_url":"https://api.github.com/users/xunce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunce/subscriptions","organizations_url":"https://api.github.com/users/xunce/orgs","repos_url":"https://api.github.com/users/xunce/repos","events_url":"https://api.github.com/users/xunce/events{/privacy}","received_events_url":"https://api.github.com/users/xunce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xunce/Electrombile_Firmware","description":"Firmware of Electrombile","fork":false,"url":"https://api.github.com/repos/xunce/Electrombile_Firmware","forks_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/forks","keys_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/teams","hooks_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/hooks","issue_events_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/events{/number}","events_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/events","assignees_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/assignees{/user}","branches_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/branches{/branch}","tags_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/tags","blobs_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/languages","stargazers_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/stargazers","contributors_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/contributors","subscribers_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/subscribers","subscription_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/subscription","commits_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/contents/{+path}","compare_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/merges","archive_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/downloads","issues_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues{/number}","pulls_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/labels{/name}","releases_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/releases{/id}","deployments_url":"https://api.github.com/repos/xunce/Electrombile_Firmware/deployments","created_at":"2015-06-24T06:47:03Z","updated_at":"2016-04-01T03:55:04Z","pushed_at":"2016-05-16T12:29:37Z","git_url":"git://github.com/xunce/Electrombile_Firmware.git","ssh_url":"git@github.com:xunce/Electrombile_Firmware.git","clone_url":"https://github.com/xunce/Electrombile_Firmware.git","svn_url":"https://github.com/xunce/Electrombile_Firmware","homepage":null,"size":20640,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55"},"html":{"href":"https://github.com/xunce/Electrombile_Firmware/pull/55"},"issue":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/55"},"comments":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/xunce/Electrombile_Firmware/statuses/08d3f9b04f6d3a88828d83c4ce372a609eda67d4"}}}}