From 256ed966d310239cbfa2b09e732fbda55ef75ca5 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 10 Mar 2016 15:17:20 +0000 Subject: 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 --- engines/afalg/e_afalg.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3