Fix a memory leak in the afalg engine
The AFALG engine created a global EVP_CIPHER instance but was not freeing it up when the engine was destroyed. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
b33c5ffeea
commit
256ed966d3
@ -844,6 +844,8 @@ static int afalg_finish(ENGINE *e)
|
|||||||
static int afalg_destroy(ENGINE *e)
|
static int afalg_destroy(ENGINE *e)
|
||||||
{
|
{
|
||||||
ERR_unload_AFALG_strings();
|
ERR_unload_AFALG_strings();
|
||||||
|
EVP_CIPHER_meth_free(_hidden_aes_128_cbc);
|
||||||
|
_hidden_aes_128_cbc = NULL;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user