Commit 256ed966 authored by Matt Caswell's avatar Matt Caswell
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
parent b33c5ffe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -844,6 +844,8 @@ static int afalg_finish(ENGINE *e)
static int afalg_destroy(ENGINE *e)
{
    ERR_unload_AFALG_strings();
    EVP_CIPHER_meth_free(_hidden_aes_128_cbc);
    _hidden_aes_128_cbc = NULL;
    return 1;
}