summaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dh/dh_meth.c')
-rw-r--r--crypto/dh/dh_meth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/dh/dh_meth.c b/crypto/dh/dh_meth.c
index afd47aba8a..45753b6164 100644
--- a/crypto/dh/dh_meth.c
+++ b/crypto/dh/dh_meth.c
@@ -31,8 +31,7 @@ DH_METHOD *DH_meth_new(const char *name, int flags)
void DH_meth_free(DH_METHOD *dhm)
{
if (dhm != NULL) {
- if (dhm->name != NULL)
- OPENSSL_free(dhm->name);
+ OPENSSL_free(dhm->name);
OPENSSL_free(dhm);
}
}