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:
parent
2ca6939ac2
commit
f5f422f7dc
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ func ParseEnvFile(filename string) ([]string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []string{}, err
|
return []string{}, err
|
||||||
}
|
}
|
||||||
|
defer fh.Close()
|
||||||
|
|
||||||
var (
|
var (
|
||||||
lines []string = []string{}
|
lines []string = []string{}
|
||||||
line, chunk []byte
|
line, chunk []byte
|
||||||
|
|
Loading…
Add table
Reference in a new issue