Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak #353

Closed
flavorjones opened this issue Oct 19, 2010 · 2 comments
Closed

memory leak #353

flavorjones opened this issue Oct 19, 2010 · 2 comments

Comments

@flavorjones
Copy link
Member

from nokogiri-talk mailing list:

require 'rubygems'
require 'nokogiri'

STDOUT.sync = true

loop do
 doc = Nokogiri::HTML('whatever ' * 10000)
 doc = doc.at_css("body")
 doc = doc.dup
 GC.start
 putc "."
end

results in a memory leak under both ruby1.8 and ruby1.9. thanks to Patrik Rak patrik@raxoft.cz for reporting.

@flavorjones
Copy link
Member Author

reproduced under libxml 2.7.6 and 2.7.7.

@tenderlove
Copy link
Member

rooting nodes after duplication. closed by 42920e6

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants