{"action":"created","comment":{"url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/comments/101065729","pull_request_review_id":21784131,"id":101065729,"diff_hunk":"@@ -25,6 +25,52 @@ extern \"C\" {\n #include <Wsk.h>\n #include <Ws2ipdef.h>\n \n+static void *\n+s_malloc(unsigned int size)\n+{\n+    void *mem = ExAllocatePoolWithTag(NonPagedPool, size+1, 'RVCO');\n+    *(int*)mem = size;\n+    mem = (char*)mem + sizeof(unsigned int);\n+    return mem;\n+}\n+\n+static void *\n+s_zalloc(unsigned int size)\n+{\n+    void *mem = s_malloc(size);\n+    NdisZeroMemory(mem, size);\n+\n+    return mem;\n+}\n+\n+static void\n+s_free(void *mem)\n+{\n+    if (mem) {\n+        mem = (char*)mem - sizeof(unsigned int);\n+        ExFreePoolWithTag(mem, 'RVCO');","path":"library/c/sandesh.h","position":27,"original_position":27,"commit_id":"2a1e951ec6fe090f808ab2607741665d9a5f9e8e","original_commit_id":"2a1e951ec6fe090f808ab2607741665d9a5f9e8e","user":{"login":"mmasztalerczuk","id":2396885,"avatar_url":"https://avatars.githubusercontent.com/u/2396885?v=3","gravatar_id":"","url":"https://api.github.com/users/mmasztalerczuk","html_url":"https://github.com/mmasztalerczuk","followers_url":"https://api.github.com/users/mmasztalerczuk/followers","following_url":"https://api.github.com/users/mmasztalerczuk/following{/other_user}","gists_url":"https://api.github.com/users/mmasztalerczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasztalerczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasztalerczuk/subscriptions","organizations_url":"https://api.github.com/users/mmasztalerczuk/orgs","repos_url":"https://api.github.com/users/mmasztalerczuk/repos","events_url":"https://api.github.com/users/mmasztalerczuk/events{/privacy}","received_events_url":"https://api.github.com/users/mmasztalerczuk/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2017-02-14T15:44:31Z","updated_at":"2017-02-14T15:44:31Z","html_url":"https://github.com/codilime/contrail-sandesh/pull/5#discussion_r101065729","pull_request_url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/comments/101065729"},"html":{"href":"https://github.com/codilime/contrail-sandesh/pull/5#discussion_r101065729"},"pull_request":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5","id":106087850,"html_url":"https://github.com/codilime/contrail-sandesh/pull/5","diff_url":"https://github.com/codilime/contrail-sandesh/pull/5.diff","patch_url":"https://github.com/codilime/contrail-sandesh/pull/5.patch","issue_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues/5","number":5,"state":"open","locked":false,"title":"JW-168 Implement malloc, free, realloc, zalloc for windows kernel","user":{"login":"mmasztalerczuk","id":2396885,"avatar_url":"https://avatars.githubusercontent.com/u/2396885?v=3","gravatar_id":"","url":"https://api.github.com/users/mmasztalerczuk","html_url":"https://github.com/mmasztalerczuk","followers_url":"https://api.github.com/users/mmasztalerczuk/followers","following_url":"https://api.github.com/users/mmasztalerczuk/following{/other_user}","gists_url":"https://api.github.com/users/mmasztalerczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasztalerczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasztalerczuk/subscriptions","organizations_url":"https://api.github.com/users/mmasztalerczuk/orgs","repos_url":"https://api.github.com/users/mmasztalerczuk/repos","events_url":"https://api.github.com/users/mmasztalerczuk/events{/privacy}","received_events_url":"https://api.github.com/users/mmasztalerczuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-14T11:43:24Z","updated_at":"2017-02-14T15:44:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81a54d31e08e78d32358e330ab2142f75254beaf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5/commits","review_comments_url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5/comments","review_comment_url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues/5/comments","statuses_url":"https://api.github.com/repos/codilime/contrail-sandesh/statuses/2a1e951ec6fe090f808ab2607741665d9a5f9e8e","head":{"label":"codilime:JW-168_sandesh","ref":"JW-168_sandesh","sha":"2a1e951ec6fe090f808ab2607741665d9a5f9e8e","user":{"login":"codilime","id":2143695,"avatar_url":"https://avatars.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"repo":{"id":72856830,"name":"contrail-sandesh","full_name":"codilime/contrail-sandesh","owner":{"login":"codilime","id":2143695,"avatar_url":"https://avatars.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codilime/contrail-sandesh","description":"Contrail analytics IDL","fork":true,"url":"https://api.github.com/repos/codilime/contrail-sandesh","forks_url":"https://api.github.com/repos/codilime/contrail-sandesh/forks","keys_url":"https://api.github.com/repos/codilime/contrail-sandesh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codilime/contrail-sandesh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codilime/contrail-sandesh/teams","hooks_url":"https://api.github.com/repos/codilime/contrail-sandesh/hooks","issue_events_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues/events{/number}","events_url":"https://api.github.com/repos/codilime/contrail-sandesh/events","assignees_url":"https://api.github.com/repos/codilime/contrail-sandesh/assignees{/user}","branches_url":"https://api.github.com/repos/codilime/contrail-sandesh/branches{/branch}","tags_url":"https://api.github.com/repos/codilime/contrail-sandesh/tags","blobs_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/refs{/sha}","trees_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codilime/contrail-sandesh/statuses/{sha}","languages_url":"https://api.github.com/repos/codilime/contrail-sandesh/languages","stargazers_url":"https://api.github.com/repos/codilime/contrail-sandesh/stargazers","contributors_url":"https://api.github.com/repos/codilime/contrail-sandesh/contributors","subscribers_url":"https://api.github.com/repos/codilime/contrail-sandesh/subscribers","subscription_url":"https://api.github.com/repos/codilime/contrail-sandesh/subscription","commits_url":"https://api.github.com/repos/codilime/contrail-sandesh/commits{/sha}","git_commits_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/commits{/sha}","comments_url":"https://api.github.com/repos/codilime/contrail-sandesh/comments{/number}","issue_comment_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues/comments{/number}","contents_url":"https://api.github.com/repos/codilime/contrail-sandesh/contents/{+path}","compare_url":"https://api.github.com/repos/codilime/contrail-sandesh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codilime/contrail-sandesh/merges","archive_url":"https://api.github.com/repos/codilime/contrail-sandesh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codilime/contrail-sandesh/downloads","issues_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues{/number}","pulls_url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls{/number}","milestones_url":"https://api.github.com/repos/codilime/contrail-sandesh/milestones{/number}","notifications_url":"https://api.github.com/repos/codilime/contrail-sandesh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codilime/contrail-sandesh/labels{/name}","releases_url":"https://api.github.com/repos/codilime/contrail-sandesh/releases{/id}","deployments_url":"https://api.github.com/repos/codilime/contrail-sandesh/deployments","created_at":"2016-11-04T14:50:56Z","updated_at":"2016-11-04T14:50:58Z","pushed_at":"2017-02-14T11:43:25Z","git_url":"git://github.com/codilime/contrail-sandesh.git","ssh_url":"git@github.com:codilime/contrail-sandesh.git","clone_url":"https://github.com/codilime/contrail-sandesh.git","svn_url":"https://github.com/codilime/contrail-sandesh","homepage":null,"size":1750,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"codilime:windows","ref":"windows","sha":"21a53aa3f2c42b9da48ea4967aedf506fdd0af25","user":{"login":"codilime","id":2143695,"avatar_url":"https://avatars.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"repo":{"id":72856830,"name":"contrail-sandesh","full_name":"codilime/contrail-sandesh","owner":{"login":"codilime","id":2143695,"avatar_url":"https://avatars.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codilime/contrail-sandesh","description":"Contrail analytics IDL","fork":true,"url":"https://api.github.com/repos/codilime/contrail-sandesh","forks_url":"https://api.github.com/repos/codilime/contrail-sandesh/forks","keys_url":"https://api.github.com/repos/codilime/contrail-sandesh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codilime/contrail-sandesh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codilime/contrail-sandesh/teams","hooks_url":"https://api.github.com/repos/codilime/contrail-sandesh/hooks","issue_events_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues/events{/number}","events_url":"https://api.github.com/repos/codilime/contrail-sandesh/events","assignees_url":"https://api.github.com/repos/codilime/contrail-sandesh/assignees{/user}","branches_url":"https://api.github.com/repos/codilime/contrail-sandesh/branches{/branch}","tags_url":"https://api.github.com/repos/codilime/contrail-sandesh/tags","blobs_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/refs{/sha}","trees_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codilime/contrail-sandesh/statuses/{sha}","languages_url":"https://api.github.com/repos/codilime/contrail-sandesh/languages","stargazers_url":"https://api.github.com/repos/codilime/contrail-sandesh/stargazers","contributors_url":"https://api.github.com/repos/codilime/contrail-sandesh/contributors","subscribers_url":"https://api.github.com/repos/codilime/contrail-sandesh/subscribers","subscription_url":"https://api.github.com/repos/codilime/contrail-sandesh/subscription","commits_url":"https://api.github.com/repos/codilime/contrail-sandesh/commits{/sha}","git_commits_url":"https://api.github.com/repos/codilime/contrail-sandesh/git/commits{/sha}","comments_url":"https://api.github.com/repos/codilime/contrail-sandesh/comments{/number}","issue_comment_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues/comments{/number}","contents_url":"https://api.github.com/repos/codilime/contrail-sandesh/contents/{+path}","compare_url":"https://api.github.com/repos/codilime/contrail-sandesh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codilime/contrail-sandesh/merges","archive_url":"https://api.github.com/repos/codilime/contrail-sandesh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codilime/contrail-sandesh/downloads","issues_url":"https://api.github.com/repos/codilime/contrail-sandesh/issues{/number}","pulls_url":"https://api.github.com/repos/codilime/contrail-sandesh/pulls{/number}","milestones_url":"https://api.github.com/repos/codilime/contrail-sandesh/milestones{/number}","notifications_url":"https://api.github.com/repos/codilime/contrail-sandesh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codilime/contrail-sandesh/labels{/name}","releases_url":"https://api.github.com/repos/codilime/contrail-sandesh/releases{/id}","deployments_url":"https://api.github.com/repos/codilime/contrail-sandesh/deployments","created_at":"2016-11-04T14:50:56Z","updated_at":"2016-11-04T14:50:58Z","pushed_at":"2017-02-14T11:43:25Z","git_url":"git://github.com/codilime/contrail-sandesh.git","ssh_url":"git@github.com:codilime/contrail-sandesh.git","clone_url":"https://github.com/codilime/contrail-sandesh.git","svn_url":"https://github.com/codilime/contrail-sandesh","homepage":null,"size":1750,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5"},"html":{"href":"https://github.com/codilime/contrail-sandesh/pull/5"},"issue":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/issues/5"},"comments":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/codilime/contrail-sandesh/statuses/2a1e951ec6fe090f808ab2607741665d9a5f9e8e"}}}}
{"actor":{"display_login":"mmasztalerczuk"}}