X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fgendh.c;h=904bcf3a945a956b3a4a9fd36e53942efbeff226;hp=bbeba067148cbd3eb3902da3654533735645988f;hb=53dd4ddf71ad79a64be934ca19445b1cf560adab;hpb=35a1cc90bc1795e8893c11e442790ee7f659fffb diff --git a/apps/gendh.c b/apps/gendh.c index bbeba06714..904bcf3a94 100644 --- a/apps/gendh.c +++ b/apps/gendh.c @@ -210,10 +210,8 @@ int MAIN(int argc, char **argv) end: if (ret != 0) ERR_print_errors(bio_err); - if (out != NULL) - BIO_free_all(out); - if (dh != NULL) - DH_free(dh); + BIO_free_all(out); + DH_free(dh); if (cb != NULL) BN_GENCB_free(cb); apps_shutdown();