{"action":"opened","number":1897,"pull_request":{"url":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/1897","id":214829780,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0ODI5Nzgw","html_url":"https://github.com/SpiderLabs/ModSecurity/pull/1897","diff_url":"https://github.com/SpiderLabs/ModSecurity/pull/1897.diff","patch_url":"https://github.com/SpiderLabs/ModSecurity/pull/1897.patch","issue_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues/1897","number":1897,"state":"open","locked":false,"title":"Fix memory leak in AuditLog::init()","user":{"login":"weliu","id":1566837,"node_id":"MDQ6VXNlcjE1NjY4Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1566837?v=4","gravatar_id":"","url":"https://api.github.com/users/weliu","html_url":"https://github.com/weliu","followers_url":"https://api.github.com/users/weliu/followers","following_url":"https://api.github.com/users/weliu/following{/other_user}","gists_url":"https://api.github.com/users/weliu/gists{/gist_id}","starred_url":"https://api.github.com/users/weliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weliu/subscriptions","organizations_url":"https://api.github.com/users/weliu/orgs","repos_url":"https://api.github.com/users/weliu/repos","events_url":"https://api.github.com/users/weliu/events{/privacy}","received_events_url":"https://api.github.com/users/weliu/received_events","type":"User","site_admin":false},"body":"This was found by valgrind:\r\n\r\n==17964== 576 bytes in 24 blocks are definitely lost in loss record 71 of 79\r\n==17964==    at 0x4C2A243: operator new(unsigned long) (vg_replace_malloc.c:334)\r\n==17964==    by 0x4F3CC86: modsecurity::audit_log::AuditLog::init(std::string*) (audit_log.cc:222)\r\n==17964==    by 0x4F43AF4: modsecurity::RulesProperties::mergeProperties(modsecurity::RulesProperties*, modsecurity::RulesProperties*, std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >*) (rules_properties.h:395)\r\n==17964==    by 0x4F42B5A: modsecurity::Rules::loadFromUri(char const*) (rules.cc:104)\r\n==17964==    by 0x4F42C42: msc_rules_add_file (rules.cc:336)\r\n==17964==    by 0x400E65: main (test.c:114)","created_at":"2018-09-12T04:04:37Z","updated_at":"2018-09-12T04:04:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/1897/commits","review_comments_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/1897/comments","review_comment_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues/1897/comments","statuses_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/statuses/9941c3abf195346d22da5527e9d8274526c30ce0","head":{"label":"weliu:fix_memleak","ref":"fix_memleak","sha":"9941c3abf195346d22da5527e9d8274526c30ce0","user":{"login":"weliu","id":1566837,"node_id":"MDQ6VXNlcjE1NjY4Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1566837?v=4","gravatar_id":"","url":"https://api.github.com/users/weliu","html_url":"https://github.com/weliu","followers_url":"https://api.github.com/users/weliu/followers","following_url":"https://api.github.com/users/weliu/following{/other_user}","gists_url":"https://api.github.com/users/weliu/gists{/gist_id}","starred_url":"https://api.github.com/users/weliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weliu/subscriptions","organizations_url":"https://api.github.com/users/weliu/orgs","repos_url":"https://api.github.com/users/weliu/repos","events_url":"https://api.github.com/users/weliu/events{/privacy}","received_events_url":"https://api.github.com/users/weliu/received_events","type":"User","site_admin":false},"repo":{"id":67770156,"node_id":"MDEwOlJlcG9zaXRvcnk2Nzc3MDE1Ng==","name":"ModSecurity","full_name":"weliu/ModSecurity","owner":{"login":"weliu","id":1566837,"node_id":"MDQ6VXNlcjE1NjY4Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1566837?v=4","gravatar_id":"","url":"https://api.github.com/users/weliu","html_url":"https://github.com/weliu","followers_url":"https://api.github.com/users/weliu/followers","following_url":"https://api.github.com/users/weliu/following{/other_user}","gists_url":"https://api.github.com/users/weliu/gists{/gist_id}","starred_url":"https://api.github.com/users/weliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weliu/subscriptions","organizations_url":"https://api.github.com/users/weliu/orgs","repos_url":"https://api.github.com/users/weliu/repos","events_url":"https://api.github.com/users/weliu/events{/privacy}","received_events_url":"https://api.github.com/users/weliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weliu/ModSecurity","description":"ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence. ","fork":true,"url":"https://api.github.com/repos/weliu/ModSecurity","forks_url":"https://api.github.com/repos/weliu/ModSecurity/forks","keys_url":"https://api.github.com/repos/weliu/ModSecurity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weliu/ModSecurity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weliu/ModSecurity/teams","hooks_url":"https://api.github.com/repos/weliu/ModSecurity/hooks","issue_events_url":"https://api.github.com/repos/weliu/ModSecurity/issues/events{/number}","events_url":"https://api.github.com/repos/weliu/ModSecurity/events","assignees_url":"https://api.github.com/repos/weliu/ModSecurity/assignees{/user}","branches_url":"https://api.github.com/repos/weliu/ModSecurity/branches{/branch}","tags_url":"https://api.github.com/repos/weliu/ModSecurity/tags","blobs_url":"https://api.github.com/repos/weliu/ModSecurity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weliu/ModSecurity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weliu/ModSecurity/git/refs{/sha}","trees_url":"https://api.github.com/repos/weliu/ModSecurity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weliu/ModSecurity/statuses/{sha}","languages_url":"https://api.github.com/repos/weliu/ModSecurity/languages","stargazers_url":"https://api.github.com/repos/weliu/ModSecurity/stargazers","contributors_url":"https://api.github.com/repos/weliu/ModSecurity/contributors","subscribers_url":"https://api.github.com/repos/weliu/ModSecurity/subscribers","subscription_url":"https://api.github.com/repos/weliu/ModSecurity/subscription","commits_url":"https://api.github.com/repos/weliu/ModSecurity/commits{/sha}","git_commits_url":"https://api.github.com/repos/weliu/ModSecurity/git/commits{/sha}","comments_url":"https://api.github.com/repos/weliu/ModSecurity/comments{/number}","issue_comment_url":"https://api.github.com/repos/weliu/ModSecurity/issues/comments{/number}","contents_url":"https://api.github.com/repos/weliu/ModSecurity/contents/{+path}","compare_url":"https://api.github.com/repos/weliu/ModSecurity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weliu/ModSecurity/merges","archive_url":"https://api.github.com/repos/weliu/ModSecurity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weliu/ModSecurity/downloads","issues_url":"https://api.github.com/repos/weliu/ModSecurity/issues{/number}","pulls_url":"https://api.github.com/repos/weliu/ModSecurity/pulls{/number}","milestones_url":"https://api.github.com/repos/weliu/ModSecurity/milestones{/number}","notifications_url":"https://api.github.com/repos/weliu/ModSecurity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weliu/ModSecurity/labels{/name}","releases_url":"https://api.github.com/repos/weliu/ModSecurity/releases{/id}","deployments_url":"https://api.github.com/repos/weliu/ModSecurity/deployments","created_at":"2016-09-09T05:56:43Z","updated_at":"2016-09-09T05:56:46Z","pushed_at":"2018-09-12T03:58:31Z","git_url":"git://github.com/weliu/ModSecurity.git","ssh_url":"git@github.com:weliu/ModSecurity.git","clone_url":"https://github.com/weliu/ModSecurity.git","svn_url":"https://github.com/weliu/ModSecurity","homepage":"www.modsecurity.org","size":68647,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SpiderLabs:v3/master","ref":"v3/master","sha":"9c73c09abd8a468cb1deb07567641172f8e5e487","user":{"login":"SpiderLabs","id":508521,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwODUyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/508521?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiderLabs","html_url":"https://github.com/SpiderLabs","followers_url":"https://api.github.com/users/SpiderLabs/followers","following_url":"https://api.github.com/users/SpiderLabs/following{/other_user}","gists_url":"https://api.github.com/users/SpiderLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiderLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiderLabs/subscriptions","organizations_url":"https://api.github.com/users/SpiderLabs/orgs","repos_url":"https://api.github.com/users/SpiderLabs/repos","events_url":"https://api.github.com/users/SpiderLabs/events{/privacy}","received_events_url":"https://api.github.com/users/SpiderLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":1320594,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwNTk0","name":"ModSecurity","full_name":"SpiderLabs/ModSecurity","owner":{"login":"SpiderLabs","id":508521,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwODUyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/508521?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiderLabs","html_url":"https://github.com/SpiderLabs","followers_url":"https://api.github.com/users/SpiderLabs/followers","following_url":"https://api.github.com/users/SpiderLabs/following{/other_user}","gists_url":"https://api.github.com/users/SpiderLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiderLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiderLabs/subscriptions","organizations_url":"https://api.github.com/users/SpiderLabs/orgs","repos_url":"https://api.github.com/users/SpiderLabs/repos","events_url":"https://api.github.com/users/SpiderLabs/events{/privacy}","received_events_url":"https://api.github.com/users/SpiderLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpiderLabs/ModSecurity","description":"ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence. ","fork":false,"url":"https://api.github.com/repos/SpiderLabs/ModSecurity","forks_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/forks","keys_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/teams","hooks_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/hooks","issue_events_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues/events{/number}","events_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/events","assignees_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/assignees{/user}","branches_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/branches{/branch}","tags_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/tags","blobs_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/statuses/{sha}","languages_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/languages","stargazers_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/stargazers","contributors_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/contributors","subscribers_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/subscribers","subscription_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/subscription","commits_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/contents/{+path}","compare_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/merges","archive_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/downloads","issues_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues{/number}","pulls_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls{/number}","milestones_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/milestones{/number}","notifications_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/labels{/name}","releases_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/releases{/id}","deployments_url":"https://api.github.com/repos/SpiderLabs/ModSecurity/deployments","created_at":"2011-02-02T14:57:01Z","updated_at":"2018-09-12T01:02:02Z","pushed_at":"2018-09-12T00:01:54Z","git_url":"git://github.com/SpiderLabs/ModSecurity.git","ssh_url":"git@github.com:SpiderLabs/ModSecurity.git","clone_url":"https://github.com/SpiderLabs/ModSecurity.git","svn_url":"https://github.com/SpiderLabs/ModSecurity","homepage":"https://www.modsecurity.org","size":69708,"stargazers_count":2318,"watchers_count":2318,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":731,"mirror_url":null,"archived":false,"open_issues_count":204,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":731,"open_issues":204,"watchers":2318,"default_branch":"v2/master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/1897"},"html":{"href":"https://github.com/SpiderLabs/ModSecurity/pull/1897"},"issue":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues/1897"},"comments":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/issues/1897/comments"},"review_comments":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/1897/comments"},"review_comment":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/pulls/1897/commits"},"statuses":{"href":"https://api.github.com/repos/SpiderLabs/ModSecurity/statuses/9941c3abf195346d22da5527e9d8274526c30ce0"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":27,"deletions":9,"changed_files":1}}
{"actor":{"display_login":"weliu"}}