mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-05 17:58:02 +02:00
[fix] unclosed file stream when creating temporary decrypted files
Signed-off-by: Quan TRAN <account@itscaro.me>
This commit is contained in:
@@ -326,6 +326,7 @@ func (helm *execer) DecryptSecret(context HelmContext, name string, flags ...str
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer tmpFile.Close()
|
||||
|
||||
_, err = tmpFile.Write(content)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user