aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dh.c')
-rw-r--r--apps/dh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/dh.c b/apps/dh.c
index a9216336e5..1b653f548a 100644
--- a/apps/dh.c
+++ b/apps/dh.c
@@ -310,10 +310,8 @@ int MAIN(int argc, char **argv)
}
ret = 0;
end:
- if (in != NULL)
- BIO_free(in);
- if (out != NULL)
- BIO_free_all(out);
+ BIO_free(in);
+ BIO_free_all(out);
DH_free(dh);
apps_shutdown();
OPENSSL_EXIT(ret);