From 5bf7c7725b9cb44813dc78cf143c5c1d5aada02c Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 26 Apr 2016 18:29:49 +0100 Subject: [PATCH] Ensure BIGNUM is freed in an error path Reviewed-by: Richard Levitte --- apps/prime.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- 2.25.1