diff options
author | Loganaden Velvindron <logan@cvs.openbsd.org> | 2014-07-13 15:47:52 +0000 |
---|---|---|
committer | Loganaden Velvindron <logan@cvs.openbsd.org> | 2014-07-13 15:47:52 +0000 |
commit | 7973e502a9481a259f5e96b9bdb5d597d04e104a (patch) | |
tree | 92d00e8a6027ed1f539b429c9156ec41ab65b7c3 /lib | |
parent | 11fd22a2eda480d68fba16748257d64de3ce31fc (diff) |
Fix memory leak.
OK from beck@ and miod@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/crypto/ec/ec_ameth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/ec/ec_ameth.c b/lib/libssl/src/crypto/ec/ec_ameth.c index c201815621a..6b4dfdec46a 100644 --- a/lib/libssl/src/crypto/ec/ec_ameth.c +++ b/lib/libssl/src/crypto/ec/ec_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_ameth.c,v 1.12 2014/07/12 16:03:37 miod Exp $ */ +/* $OpenBSD: ec_ameth.c,v 1.13 2014/07/13 15:47:51 logan Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -373,6 +373,7 @@ ec_bits(const EVP_PKEY * pkey) } group = EC_KEY_get0_group(pkey->pkey.ec); if (!EC_GROUP_get_order(group, order, NULL)) { + BN_free(order); ERR_clear_error(); return 0; } |