[fix] unclosed file stream when creating temporary decrypted files
Signed-off-by: Quan TRAN <account@itscaro.me>
This commit is contained in:
parent
4247b97eb1
commit
a793797404
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue