diff options
| author | logan <> | 2014-07-13 15:47:51 +0000 | 
|---|---|---|
| committer | logan <> | 2014-07-13 15:47:51 +0000 | 
| commit | 679de7876fe8228887034f815ef2e29db63ba752 (patch) | |
| tree | 9fedb5186b6cf7e5b35b16b47dc1a4fa22661512 /src/lib/libc | |
| parent | 2c3b7f8b200d039470bd0a6c3a6aee84efead2d0 (diff) | |
| download | openbsd-679de7876fe8228887034f815ef2e29db63ba752.tar.gz openbsd-679de7876fe8228887034f815ef2e29db63ba752.tar.bz2 openbsd-679de7876fe8228887034f815ef2e29db63ba752.zip | |
Fix memory leak.
OK from beck@ and miod@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_ameth.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c index c201815621..6b4dfdec46 100644 --- a/src/lib/libcrypto/ec/ec_ameth.c +++ b/src/lib/libcrypto/ec/ec_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_ameth.c,v 1.12 2014/07/12 16:03:37 miod Exp $ */ | 1 | /* $OpenBSD: ec_ameth.c,v 1.13 2014/07/13 15:47:51 logan Exp $ */ | 
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 
| 3 | * project 2006. | 3 | * project 2006. | 
| 4 | */ | 4 | */ | 
| @@ -373,6 +373,7 @@ ec_bits(const EVP_PKEY * pkey) | |||
| 373 | } | 373 | } | 
| 374 | group = EC_KEY_get0_group(pkey->pkey.ec); | 374 | group = EC_KEY_get0_group(pkey->pkey.ec); | 
| 375 | if (!EC_GROUP_get_order(group, order, NULL)) { | 375 | if (!EC_GROUP_get_order(group, order, NULL)) { | 
| 376 | BN_free(order); | ||
| 376 | ERR_clear_error(); | 377 | ERR_clear_error(); | 
| 377 | return 0; | 378 | return 0; | 
| 378 | } | 379 | } | 
