[fix] unclosed file stream when creating temporary decrypted files

Signed-off-by: Quan TRAN <account@itscaro.me>
This commit is contained in:
Quan TRAN 2022-04-05 22:52:17 +02:00
parent 4247b97eb1
commit a793797404
1 changed files with 1 additions and 0 deletions

View File

@ -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 {