Fix file descriptor leak in Formula#system

This commit is contained in:
Jack Nagel 2014-09-07 20:41:18 -05:00
parent 6b423c8cfb
commit 691f962b0d

View File

@ -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}"