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
commita4f8aeb32e5b4a3e327cce03bcf9ac514e0206fd (patch)
tree7112d92a7c4ae6a54a19001ca57c2ac13ae4d911 /Library/Homebrew
parent2dd51c02103e12f65cb44b3e0fe738cd4386c3d3 (diff)
downloadhomebrew-a4f8aeb32e5b4a3e327cce03bcf9ac514e0206fd.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}"