diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 328334b836..789e3b5aa3 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -374,6 +374,8 @@ class FormulaInstaller f.rack.rmdir_if_possible end raise + ensure + read.close end def link