From 6a3a3706034b3edfe99e0a37daef019e4a4ebff7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 8 Sep 2014 19:50:32 -0500 Subject: [PATCH] Fix file descriptor leak --- Library/Contributions/cmd/brew-test-bot.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 30436263c3..c1eccb2ffa 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -179,6 +179,7 @@ class Test rd.close STDERR.reopen("/dev/null") STDOUT.reopen(wr) + wr.close Dir.chdir @repository exec("git", *args) end