mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-19 10:48:59 +00:00
fix: close config file (#1531)
Co-authored-by: M. Mert Yildiran <me@mertyildiran.com>
This commit is contained in:
parent
06e0def53e
commit
22a777ac79
@ -146,6 +146,7 @@ func loadConfigFile(config *ConfigStruct, silent bool) error {
|
||||
} else {
|
||||
ConfigFilePath = cwdConfig
|
||||
}
|
||||
defer reader.Close()
|
||||
|
||||
buf, err := io.ReadAll(reader)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user