summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-02-13 00:46:04 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-02-13 00:46:04 +0000
commit2491311b69bd6c81d3de30dd6babe88fba8f6ba0 (patch)
treec61a9f29dec02b0ac03dcb51dbf85029a1558554 /lib/libcrypto
parentcdeb5f28ac0050b8a9e583e3fd6c88031f893355 (diff)
fix leaking of bn, coverity issue 105351
ok doug@
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/ec/ecp_mont.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/ec/ecp_mont.c b/lib/libcrypto/ec/ecp_mont.c
index af8014ed389..a3ad4e1ce9d 100644
--- a/lib/libcrypto/ec/ecp_mont.c
+++ b/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;
}