Skip to content

Commit

Permalink
pkg/index: close manifest file after reading (#313)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb authored and k8s-ci-robot committed Aug 22, 2019
1 parent 29ca49e commit ba619f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/index/indexscanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func ReadPluginFile(indexFilePath string) (index.Plugin, error) {
} else if err != nil {
return index.Plugin{}, errors.Wrap(err, "failed to open index file")
}
defer f.Close()
return DecodePluginFile(f)
}

Expand Down

0 comments on commit ba619f2

Please sign in to comment.