From 982086dbe909a5afaafb0fd0690be21fcff18cc4 Mon Sep 17 00:00:00 2001 From: Ico Doornekamp Date: Thu, 3 Oct 2019 06:48:31 +0200 Subject: [PATCH] Fixed #12337, leaking pipe after gorge (#12339) --- compiler/gorgeimpl.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/gorgeimpl.nim b/compiler/gorgeimpl.nim index c9f82b5051..d4aeb6a77e 100644 --- a/compiler/gorgeimpl.nim +++ b/compiler/gorgeimpl.nim @@ -40,6 +40,7 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str p.inputStream.write(input) p.inputStream.close() result = p.readOutput + p.close() readSuccessful = true # only cache successful runs: if result[1] == 0: @@ -54,5 +55,6 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str p.inputStream.write(input) p.inputStream.close() result = p.readOutput + p.close() except IOError, OSError: result = ("", -1)