Makes nil-safe
This commit is contained in:
parent
b247ac086e
commit
de3f725978
@ -100,7 +100,7 @@ class LeakChecker
|
||||
next if /darwin/ =~ RUBY_PLATFORM and [0, -1].include?(s.dev)
|
||||
str << ' ' << s.inspect
|
||||
ensure
|
||||
io.close
|
||||
io&.close
|
||||
end
|
||||
end
|
||||
puts "Leaked file descriptor: #{test_name}: #{fd}#{str}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user