The branch OpenSSL_1_0_2-stable has been updated
       via  953a1665e2a3ea0423f3deb2a71972486d0ee61e (commit)
      from  0cfb422656b0807b23f63fccea0a12ab2bddbbb1 (commit)


- Log -----------------------------------------------------------------
commit 953a1665e2a3ea0423f3deb2a71972486d0ee61e
Author: Bernd Edlinger <[email protected]>
Date:   Sun Jul 2 12:32:47 2017 +0200

    Fix a memleak in ec_GFp_mont_group_set_curve.
    
    Reviewed-by: Rich Salz <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/3828)

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

Summary of changes:
 crypto/ec/ecp_mont.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/ec/ecp_mont.c b/crypto/ec/ecp_mont.c
index b2de7fa..43c4330 100644
--- a/crypto/ec/ecp_mont.c
+++ b/crypto/ec/ecp_mont.c
@@ -247,6 +247,8 @@ int ec_GFp_mont_group_set_curve(EC_GROUP *group, const 
BIGNUM *p,
         BN_CTX_free(new_ctx);
     if (mont != NULL)
         BN_MONT_CTX_free(mont);
+    if (one != NULL)
+        BN_free(one);
     return ret;
 }
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to