зеркало из https://github.com/github/ruby.git
Fix check_tempfile_leak in leakchecker.rb
The instance variable @tmpfile was removed in ddcfc9f
so check_tempfile_leak
did not work.
This commit is contained in:
Родитель
57e3fc32ea
Коммит
cf3b62b545
|
@ -155,8 +155,8 @@ class LeakChecker
|
|||
if prev_count == count
|
||||
[prev_count, []]
|
||||
else
|
||||
tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t|
|
||||
t.instance_variable_defined?(:@tmpfile) and t.path
|
||||
tempfiles = ObjectSpace.each_object(Tempfile).reject {|t|
|
||||
t.instance_variables.empty? || t.closed?
|
||||
}
|
||||
[count, tempfiles]
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче