summaryrefslogtreecommitdiffstats
path: root/crypto/dh/dhtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dh/dhtest.c')
-rw-r--r--crypto/dh/dhtest.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c
index 9bb9a00212..6c063daf3d 100644
--- a/crypto/dh/dhtest.c
+++ b/crypto/dh/dhtest.c
@@ -199,10 +199,8 @@ int main(int argc, char *argv[])
OPENSSL_free(abuf);
if (bbuf != NULL)
OPENSSL_free(bbuf);
- if (b != NULL)
- DH_free(b);
- if (a != NULL)
- DH_free(a);
+ DH_free(b);
+ DH_free(a);
if (_cb)
BN_GENCB_free(_cb);
BIO_free(out);