PKCS11_CTX_unload(): do not call ERR_free_strings() and

ERR_remove_state() since OpenSSL strings may be used by the application
and we can't know


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2492 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2005-08-18 07:06:13 +00:00
parent b143ac5637
commit df86e3f8ac
1 changed files with 4 additions and 0 deletions

View File

@ -137,8 +137,12 @@ void PKCS11_CTX_unload(PKCS11_CTX * ctx)
*/
void PKCS11_CTX_free(PKCS11_CTX * ctx)
{
/* Do not remove the strings since OpenSSL strings may still be used by
* the application and we can't know
ERR_free_strings();
ERR_remove_state(0);
*/
OPENSSL_free(ctx->manufacturer);
OPENSSL_free(ctx->description);
OPENSSL_free(ctx->_private);