[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Thu Mar 10 16:19:35 UTC 2016


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


- Log -----------------------------------------------------------------
commit 256ed966d310239cbfa2b09e732fbda55ef75ca5
Author: Matt Caswell <matt at openssl.org>
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 <rsalz at openssl.org>

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

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;
 }
 


More information about the openssl-commits mailing list