aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-09-07 20:41:18 -0500
committerJack Nagel2014-09-07 20:41:18 -0500
commit691f962b0dd63c03cfeaa1395eebee430a38d6e3 (patch)
tree30c0ebe199ce12100a88ede25bfe6cb8b35833a3 /Library/Homebrew
parent6b423c8cfbf70ce614c88900989313e9d6b876e5 (diff)
downloadbrew-691f962b0dd63c03cfeaa1395eebee430a38d6e3.tar.bz2
Fix file descriptor leak in Formula#system
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 94cc964a9..59e81ad32 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -571,6 +571,7 @@ class Formula
$stdout.reopen(out)
$stderr.reopen(out)
+ out.close
args.collect!{|arg| arg.to_s}
exec(cmd, *args) rescue nil
puts "Failed to execute: #{cmd}"