aboutsummaryrefslogtreecommitdiff
path: root/openssl/agent/pkcs11
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/agent/pkcs11')
-rw-r--r--openssl/agent/pkcs11/private-key.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl/agent/pkcs11/private-key.cxx b/openssl/agent/pkcs11/private-key.cxx
index 1fc4b8c..d9dd4b6 100644
--- a/openssl/agent/pkcs11/private-key.cxx
+++ b/openssl/agent/pkcs11/private-key.cxx
@@ -22,7 +22,10 @@ namespace openssl
close_session (CK_SESSION_HANDLE* p)
{
if (p != nullptr)
+ {
api ()->C_CloseSession (*p);
+ delete p;
+ }
}
private_key::