diff options
| author | Jack Nagel | 2014-09-07 20:41:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-07 20:41:18 -0500 |
| commit | a4f8aeb32e5b4a3e327cce03bcf9ac514e0206fd (patch) | |
| tree | 7112d92a7c4ae6a54a19001ca57c2ac13ae4d911 /Library/Homebrew | |
| parent | 2dd51c02103e12f65cb44b3e0fe738cd4386c3d3 (diff) | |
| download | homebrew-a4f8aeb32e5b4a3e327cce03bcf9ac514e0206fd.tar.bz2 | |
Fix file descriptor leak in Formula#system
Diffstat (limited to 'Library/Homebrew')
| -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}" |
