summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-08 06:09:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-08 06:09:09 +0000
commit6c3d366bbcef5fc264efcb2db259dfc0f43f8eaa (patch)
treeca2602f0c1478f1833790bbd7db7bac6675a1928
parent023835f47594b348f6d9e213933c2c3f3b4d9a41 (diff)
resolver.rb: fix fd leaks
* lib/rubygems/resolver.rb (resolve): close UI output unless debugging. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rubygems/resolver.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/resolver.rb b/lib/rubygems/resolver.rb
index c56f224..44f717e 100644
--- a/lib/rubygems/resolver.rb
+++ b/lib/rubygems/resolver.rb
@@ -191,6 +191,8 @@ class Gem::Resolver
rescue Molinillo::VersionConflict => e
conflict = e.conflicts.values.first
raise Gem::DependencyResolutionError, Conflict.new(conflict.requirement_trees.first.first, conflict.existing, conflict.requirement)
+ ensure
+ @output.close if @output and !debug?
end
##