free pin when ending a pkcs11 session; patch supplied by Douglas E. Engert <deengert@anl.gov>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2328 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
577ccf1b82
commit
0f3cfb09b5
|
@ -89,6 +89,10 @@ int pkcs11_finish(ENGINE * engine)
|
|||
if (ctx) {
|
||||
PKCS11_CTX_free(ctx);
|
||||
}
|
||||
if (pin != NULL) {
|
||||
free(pin);
|
||||
pin = NULL;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -109,6 +113,7 @@ int pkcs11_rsa_finish(RSA * rsa)
|
|||
{
|
||||
if (pin) {
|
||||
free(pin);
|
||||
pin = NULL;
|
||||
}
|
||||
if (!default_module && module) {
|
||||
free(module);
|
||||
|
|
Loading…
Reference in New Issue