From ec76d850afe00ad699a2ab20e5042dc7c9ec6833 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 21 Nov 2012 14:02:30 +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 79c0d64c51..f5d7126af7 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