aboutsummaryrefslogtreecommitdiff
path: root/internal/crypt
diff options
context:
space:
mode:
Diffstat (limited to 'internal/crypt')
-rw-r--r--internal/crypt/sshKey.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/crypt/sshKey.go b/internal/crypt/sshKey.go
index 3b0b344..e36d6fd 100644
--- a/internal/crypt/sshKey.go
+++ b/internal/crypt/sshKey.go
@@ -178,7 +178,7 @@ func FindAndUnwrapNoteKey(recipients []WrappedKey, privKeyPath string) ([]byte,
return nil, fmt.Errorf("read SSH key: %w", err)
}
TryMlock(pemBytes)
- clear(pemBytes)
+ defer clear(pemBytes)
parsed, err := ssh.ParseRawPrivateKey(pemBytes)
if err != nil {