From 3a6e04ae9cbe076080176e3e32bdee32f2241a0b Mon Sep 17 00:00:00 2001 From: beck <> Date: Fri, 13 Feb 2015 00:46:03 +0000 Subject: fix leaking of bn, coverity issue 105351 ok doug@ --- src/lib/libcrypto/ec/ecp_mont.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/ec/ecp_mont.c') diff --git a/src/lib/libcrypto/ec/ecp_mont.c b/src/lib/libcrypto/ec/ecp_mont.c index af8014ed38..a3ad4e1ce9 100644 --- a/src/lib/libcrypto/ec/ecp_mont.c +++ b/src/lib/libcrypto/ec/ecp_mont.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecp_mont.c,v 1.9 2014/07/12 16:03:37 miod Exp $ */ +/* $OpenBSD: ecp_mont.c,v 1.10 2015/02/13 00:46:03 beck Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -228,6 +228,7 @@ ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, err: BN_CTX_free(new_ctx); BN_MONT_CTX_free(mont); + BN_free(one); return ret; } -- cgit v1.2.3-55-g6feb