diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-26 18:29:49 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-01 14:51:36 +0100 |
commit | 5bf7c7725b9cb44813dc78cf143c5c1d5aada02c (patch) | |
tree | 06cf5ac86d2af5a5a78830957d62065ca408e442 /apps | |
parent | fe2b7dfdf446088d5c1cc9dc9d49d131cc4ef7f9 (diff) |
Ensure BIGNUM is freed in an error path
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/prime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/prime.c b/apps/prime.c index 940fd4502a..b0f5969a22 100644 --- a/apps/prime.c +++ b/apps/prime.c @@ -119,9 +119,8 @@ int prime_main(int argc, char **argv) } } - BN_free(bn); - ret = 0; end: + BN_free(bn); return ret; } |