aboutsummaryrefslogtreecommitdiffstats
path: root/tools/execprog/execprog.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/execprog/execprog.go')
-rw-r--r--tools/execprog/execprog.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/execprog/execprog.go b/tools/execprog/execprog.go
index 8f642fc66..bd8ebe3f9 100644
--- a/tools/execprog/execprog.go
+++ b/tools/execprog/execprog.go
@@ -62,6 +62,7 @@ func main() {
fmt.Fprintf(os.Stderr, "failed to create execution environment: %v\n", err)
os.Exit(1)
}
+ defer env.Close()
output, strace, cov, failed, hanged, err := env.Exec(p)
fmt.Printf("result: failed=%v hanged=%v err=%v\n\n%s", failed, hanged, err, output)
if *flagStrace {