mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-21 11:40:56 +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 {
|
} else {
|
||||||
ConfigFilePath = cwdConfig
|
ConfigFilePath = cwdConfig
|
||||||
}
|
}
|
||||||
|
defer reader.Close()
|
||||||
|
|
||||||
buf, err := io.ReadAll(reader)
|
buf, err := io.ReadAll(reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user