diff options
| author | Jack Nagel | 2014-09-07 20:41:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-07 20:41:18 -0500 |
| commit | 691f962b0dd63c03cfeaa1395eebee430a38d6e3 (patch) | |
| tree | 30c0ebe199ce12100a88ede25bfe6cb8b35833a3 | |
| parent | 6b423c8cfbf70ce614c88900989313e9d6b876e5 (diff) | |
| download | brew-691f962b0dd63c03cfeaa1395eebee430a38d6e3.tar.bz2 | |
Fix file descriptor leak in Formula#system
| -rw-r--r-- | Library/Homebrew/formula.rb | 1 |
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}" |
