diff options
author | Ico Doornekamp <ico@pruts.nl> | 2019-10-03 06:48:31 +0200 |
---|---|---|
committer | Varriount <Varriount@users.noreply.github.com> | 2019-10-03 00:48:31 -0400 |
commit | 982086dbe909a5afaafb0fd0690be21fcff18cc4 (patch) | |
tree | 0a20a88302541c5ce0161a277852101203e13d02 /compiler | |
parent | ba4315636368e3059212eb13aec59bf19f69aefa (diff) | |
download | Nim-982086dbe909a5afaafb0fd0690be21fcff18cc4.tar.gz |
Fixed #12337, leaking pipe after gorge (#12339)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/gorgeimpl.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/gorgeimpl.nim b/compiler/gorgeimpl.nim index c9f82b505..d4aeb6a77 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) |