attempt to fix tester.nim file handle leak

This commit is contained in:
Araq
2011-08-29 01:13:38 +02:00
parent 82af6387d9
commit 5112677904
2 changed files with 1 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ proc callCompiler(cmdTemplate, filename, options: string): TSpec =
if x =~ pegOfInterest:
# `s` should contain the last error message
s = x
close(p)
result.msg = ""
result.file = ""
result.outp = ""