Actions
Bug #9187
closedst_table leaks when exception is raised in Hash#rehash
Description
Following code causes leakage of st_table:
class Foo
def initialize
@raise = false
end
def hash
raise if @raise
@raise = true
return 0
end
end
h = {Foo.new => true}
10_0000.times do
h.rehash rescue nil
end
Actions
Like0
Like0Like0Like0Like0