From 563c1ec61848073e3739dd126cf1950e338c820d Mon Sep 17 00:00:00 2001 From: Miroslav Franc Date: Thu, 14 Jul 2016 17:14:08 +0200 Subject: fix memory leaks Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1313) --- crypto/ec/ecp_mont.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/ec/ecp_mont.c') diff --git a/crypto/ec/ecp_mont.c b/crypto/ec/ecp_mont.c index a9c6040937..994cc1d0ff 100644 --- a/crypto/ec/ecp_mont.c +++ b/crypto/ec/ecp_mont.c @@ -178,6 +178,7 @@ int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, } err: + BN_free(one); BN_CTX_free(new_ctx); BN_MONT_CTX_free(mont); return ret; -- cgit v1.2.3