Close file after reading
Test: m nothing Change-Id: Ib2daa2081d47c52bd3994520d522c5df95973e4a
This commit is contained in:
parent
1b438d6b7e
commit
6e7e6a92c7
1 changed files with 1 additions and 0 deletions
|
@ -686,6 +686,7 @@ func (c *Context) ListModulePaths(baseDir string) (paths []string, err error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer reader.Close()
|
||||
bytes, err := ioutil.ReadAll(reader)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue