From: Matt Caswell Date: Thu, 10 Mar 2016 15:17:20 +0000 (+0000) Subject: Fix a memory leak in the afalg engine X-Git-Tag: OpenSSL_1_1_0-pre4~83 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=256ed966d310239cbfa2b09e732fbda55ef75ca5;p=oweals%2Fopenssl.git 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 --- diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c index 51ae68ddc1..90d7602068 100644 --- a/engines/afalg/e_afalg.c +++ b/engines/afalg/e_afalg.c @@ -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; }