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:
parent
b143ac5637
commit
df86e3f8ac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue