{"action":"closed","pull_request":{"review_comments":0,"created_at":"2011-07-29T00:50:39Z","state":"closed","patch_url":"https://github.com/tenderlove/nokogiri/pull/501.patch","updated_at":"2011-11-28T21:56:09Z","changed_files":1,"_links":{"review_comments":{"href":"https://api.github.com/repos/tenderlove/nokogiri/pulls/501/comments"},"comments":{"href":"https://api.github.com/repos/tenderlove/nokogiri/issues/501/comments"},"html":{"href":"https://github.com/tenderlove/nokogiri/pull/501"},"self":{"href":"https://api.github.com/repos/tenderlove/nokogiri/pulls/501"}},"user":{"gravatar_id":"bc02944e07977061e9ffe0a8f4eda3d5","id":41417,"url":"https://api.github.com/users/ender672","avatar_url":"https://secure.gravatar.com/avatar/bc02944e07977061e9ffe0a8f4eda3d5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ender672"},"comments":1,"issue_url":"https://github.com/tenderlove/nokogiri/issues/501","body":"Any kind of XML node was not being freed properly after being replaced and the following will eat all memory:\r\n\r\n    loop {\r\n        doc = Nokogiri.XML \"<root><a1>First node</a1><a2>Second node</a2><a3>Third <bx />node</a3></root>\"\r\n        n =  XML::CDATA.new(doc, \"hello\")\r\n        doc.at_xpath(\"/root/a3/bx\").replace n\r\n    }","merged":false,"deletions":0,"commits":1,"mergeable":true,"id":245382,"number":501,"base":{"user":{"gravatar_id":"f29327647a9cff5c69618bae420792ea","id":3124,"url":"https://api.github.com/users/tenderlove","avatar_url":"https://secure.gravatar.com/avatar/f29327647a9cff5c69618bae420792ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tenderlove"},"repo":{"created_at":"2008-07-14T15:34:32Z","pushed_at":"2011-11-23T20:40:07Z","clone_url":"https://github.com/tenderlove/nokogiri.git","updated_at":"2011-11-28T20:30:32Z","private":false,"master_branch":null,"svn_url":"https://svn.github.com/tenderlove/nokogiri","name":"nokogiri","watchers":1459,"forks":156,"language":"Java","owner":{"gravatar_id":"f29327647a9cff5c69618bae420792ea","id":3124,"url":"https://api.github.com/users/tenderlove","avatar_url":"https://secure.gravatar.com/avatar/f29327647a9cff5c69618bae420792ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tenderlove"},"id":33945,"homepage":"http://nokogiri.org/","description":"Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support.","git_url":"git://github.com/tenderlove/nokogiri.git","html_url":"https://github.com/tenderlove/nokogiri","size":852,"fork":false,"url":"https://api.github.com/repos/tenderlove/nokogiri","open_issues":78,"ssh_url":"git@github.com:tenderlove/nokogiri.git"},"sha":"52c76e058c04e2e6fdf2a84af4d43a41e8c2dbbb","ref":"master","label":"tenderlove:master"},"additions":2,"merged_by":null,"head":{"user":{"gravatar_id":"bc02944e07977061e9ffe0a8f4eda3d5","id":41417,"url":"https://api.github.com/users/ender672","avatar_url":"https://secure.gravatar.com/avatar/bc02944e07977061e9ffe0a8f4eda3d5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ender672"},"repo":{"created_at":"2011-07-26T22:47:32Z","pushed_at":"2011-11-23T20:31:50Z","clone_url":"https://github.com/ender672/nokogiri.git","updated_at":"2011-11-23T20:31:50Z","private":false,"master_branch":null,"svn_url":"https://svn.github.com/ender672/nokogiri","name":"nokogiri","watchers":1,"forks":0,"language":"Java","owner":{"gravatar_id":"bc02944e07977061e9ffe0a8f4eda3d5","id":41417,"url":"https://api.github.com/users/ender672","avatar_url":"https://secure.gravatar.com/avatar/bc02944e07977061e9ffe0a8f4eda3d5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ender672"},"id":2109802,"homepage":"http://nokogiri.org/","description":"Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support.","git_url":"git://github.com/ender672/nokogiri.git","html_url":"https://github.com/ender672/nokogiri","size":200,"fork":true,"url":"https://api.github.com/repos/ender672/nokogiri","open_issues":0,"ssh_url":"git@github.com:ender672/nokogiri.git"},"sha":"d05c30fc16f87f2e4b09e8e58d039cbc1fe712e9","ref":"root_after_pivot","label":"ender672:root_after_pivot"},"title":"Plug a memory leak in XML::Node#replace","closed_at":"2011-11-28T21:56:09Z","html_url":"https://github.com/tenderlove/nokogiri/pull/501","url":"https://api.github.com/repos/tenderlove/nokogiri/pulls/501","diff_url":"https://github.com/tenderlove/nokogiri/pull/501.diff","merged_at":null},"number":501}