Merge pull request #20 from itscaro/qtran/fix-decrypted-file

[fix] unclosed file stream when creating temporary decrypted files
This commit is contained in:
Yusuke Kuoka 2022-04-06 08:37:13 +09:00 committed by GitHub
commit f49d181b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {