diff options
Diffstat (limited to 'src/lib/libcrypto/ec/eck_prn.c')
| -rw-r--r-- | src/lib/libcrypto/ec/eck_prn.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c index b0c8bcd22a..aa13d8b08c 100644 --- a/src/lib/libcrypto/ec/eck_prn.c +++ b/src/lib/libcrypto/ec/eck_prn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: eck_prn.c,v 1.9 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: eck_prn.c,v 1.10 2014/07/12 16:03:37 miod Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -315,20 +315,13 @@ ECPKParameters_print(BIO * bp, const EC_GROUP * x, int off) | |||
| 315 | err: | 315 | err: |
| 316 | if (!ret) | 316 | if (!ret) |
| 317 | ECerr(EC_F_ECPKPARAMETERS_PRINT, reason); | 317 | ECerr(EC_F_ECPKPARAMETERS_PRINT, reason); |
| 318 | if (p) | 318 | BN_free(p); |
| 319 | BN_free(p); | 319 | BN_free(a); |
| 320 | if (a) | 320 | BN_free(b); |
| 321 | BN_free(a); | 321 | BN_free(gen); |
| 322 | if (b) | 322 | BN_free(order); |
| 323 | BN_free(b); | 323 | BN_free(cofactor); |
| 324 | if (gen) | 324 | BN_CTX_free(ctx); |
| 325 | BN_free(gen); | ||
| 326 | if (order) | ||
| 327 | BN_free(order); | ||
| 328 | if (cofactor) | ||
| 329 | BN_free(cofactor); | ||
| 330 | if (ctx) | ||
| 331 | BN_CTX_free(ctx); | ||
| 332 | free(buffer); | 325 | free(buffer); |
| 333 | return (ret); | 326 | return (ret); |
| 334 | } | 327 | } |
