diff options
Diffstat (limited to 'crypto/ec/ec.c')
-rw-r--r-- | crypto/ec/ec.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/crypto/ec/ec.c b/crypto/ec/ec.c index f9d8dc5b..30f93461 100644 --- a/crypto/ec/ec.c +++ b/crypto/ec/ec.c @@ -357,22 +357,30 @@ err: EC_GROUP_free(group); group = NULL; } - if (P) + if (P) { EC_POINT_free(P); - if (ctx) + } + if (ctx) { BN_CTX_free(ctx); - if (p) + } + if (p) { BN_free(p); - if (a) + } + if (a) { BN_free(a); - if (b) + } + if (b) { BN_free(b); - if (order) + } + if (order) { BN_free(order); - if (x) + } + if (x) { BN_free(x); - if (y) + } + if (y) { BN_free(y); + } return group; } |