1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

pkg/opts: Close the file handle

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
This commit is contained in:
Vincent Batts 2014-02-18 14:22:46 -05:00
parent cd51ac92bd
commit bfaa917a96

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