Close file after reading

Test: m nothing
Change-Id: Ib2daa2081d47c52bd3994520d522c5df95973e4a
This commit is contained in:
Liz Kammer 2022-02-07 10:03:19 -05:00
parent 1b438d6b7e
commit 6e7e6a92c7

View file

@ -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