From: Matt Caswell Date: Tue, 26 Apr 2016 17:29:49 +0000 (+0100) Subject: Ensure BIGNUM is freed in an error path X-Git-Tag: OpenSSL_1_1_0-pre6~621 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5bf7c7725b9cb44813dc78cf143c5c1d5aada02c;p=oweals%2Fopenssl.git Ensure BIGNUM is freed in an error path Reviewed-by: Richard Levitte --- 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; }