aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-09-05 15:22:51 -0500
committerJack Nagel2014-09-05 15:23:00 -0500
commit638363ac8bab3baed6824bafd66955919d062a66 (patch)
treee865022b1cc1ab33df87feef597fdacfd4984b4c /Library/Homebrew
parent7c470607028c041ccaecd666fcf5c0577ce6bb71 (diff)
downloadbrew-638363ac8bab3baed6824bafd66955919d062a66.tar.bz2
Ensure log file is closed
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 9782fffa2..3f09b14e3 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -546,6 +546,8 @@ class Formula
Homebrew.dump_build_config(log)
raise BuildError.new(self, cmd, args)
end
+ ensure
+ log.close if log && !log.closed?
end
private