Browse Source

pkg/opts: Close the file handle

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
Vincent Batts 11 years ago
parent
commit
bfaa917a96
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pkg/opts/envfile.go

+ 2 - 0
pkg/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