projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b33c5ff
)
Fix a memory leak in the afalg engine
author
Matt Caswell
<matt@openssl.org>
Thu, 10 Mar 2016 15:17:20 +0000
(15:17 +0000)
committer
Matt Caswell
<matt@openssl.org>
Thu, 10 Mar 2016 15:17:20 +0000
(15:17 +0000)
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>
engines/afalg/e_afalg.c
patch
|
blob
|
history
diff --git
a/engines/afalg/e_afalg.c
b/engines/afalg/e_afalg.c
index 51ae68ddc1c47264ca5d6b03670484cb9653a47f..90d76020683d852c3db8a36d182532065d340d37 100644
(file)
--- 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;
}