From f5f422f7dce120d92a64bf42e2f73d9dc11c6349 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 18 Feb 2014 14:22:46 -0500 Subject: [PATCH] pkg/opts: Close the file handle Docker-DCO-1.1-Signed-off-by: Vincent Batts (github: vbatts) --- opts/envfile.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opts/envfile.go b/opts/envfile.go index 004c320..65495a1 100644 --- a/opts/envfile.go +++ b/opts/envfile.go @@ -15,6 +15,8 @@ func ParseEnvFile(filename string) ([]string, error) { if err != nil { return []string{}, err } + defer fh.Close() + var ( lines []string = []string{} line, chunk []byte