From eb3a3911fcb5e8df68f225d47652e7961b60f81a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 21 Nov 2012 14:02:21 +0000 Subject: [PATCH] PR: 2908 Submitted by: Dmitry Belyavsky Fix DH double free if parameter generation fails. --- apps/dhparam.c | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/dhparam.c b/apps/dhparam.c index b47097cbb2..1297d6fb5e 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -332,7 +332,6 @@ bad: BIO_printf(bio_err,"This is going to take a long time\n"); if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb)) { - if(dh) DH_free(dh); ERR_print_errors(bio_err); goto end; } -- 2.25.1