Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122855 Details for
Bug 182946
Memory leak in dev-lang/ruby-1.8.6-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
code that shows the leak
tidy_test.rb (text/plain), 398 bytes, created by
Mike Doty (RETIRED)
on 2007-06-23 05:10:53 UTC
(
hide
)
Description:
code that shows the leak
Filename:
MIME Type:
Creator:
Mike Doty (RETIRED)
Created:
2007-06-23 05:10:53 UTC
Size:
398 bytes
patch
obsolete
>require 'tidy' > >Tidy.path = '/usr/lib/libtidy.so' > > >class Tidybuf > def to_a > str = to_s.split("\r\n") > str > end >end > >tidy_obj = Tidy.new > >tidy_lib = Tidylib.create >err_buf = Tidybuf.new >out_buf = Tidybuf.new > >rc = Tidylib.set_error_buffer(tidy_lib, err_buf.struct) > >text = "<b>foo</b><i>your mom<b></i></b>" > >last_gc = Time::now >loop do > tidy_obj.clean(text) >end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 182946
: 122855 |
122856
|
122858
|
122870