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:
nils 2005-04-30 10:07:07 +00:00
parent 577ccf1b82
commit 0f3cfb09b5
1 changed files with 5 additions and 0 deletions

View File

@ -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);