pkg/opts: Close the file handle

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
Upstream-commit: bfaa917a966fab1e2c92e70617320957a8d8b43b
Component: engine
This commit is contained in:
Vincent Batts
2014-03-31 14:44:32 -04:00
parent 2d9f166bda
commit f552bd89e1
+2
View File
@@ -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