The branch master has been updated
       via  256ed966d310239cbfa2b09e732fbda55ef75ca5 (commit)
      from  b33c5ffeea346fe671ff72b93ede3faa9ef6b865 (commit)


- Log -----------------------------------------------------------------
commit 256ed966d310239cbfa2b09e732fbda55ef75ca5
Author: Matt Caswell <[email protected]>
Date:   Thu Mar 10 15:17:20 2016 +0000

    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 <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 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 51ae68d..90d7602 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;
 }
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to