diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-10 15:17:20 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-10 15:17:20 +0000 |
commit | 256ed966d310239cbfa2b09e732fbda55ef75ca5 (patch) | |
tree | 69241497a6c71058d14f21226eab822bac17a84a /engines/afalg | |
parent | b33c5ffeea346fe671ff72b93ede3faa9ef6b865 (diff) |
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>
Diffstat (limited to 'engines/afalg')
-rw-r--r-- | engines/afalg/e_afalg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |