summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/dh.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/usr.bin/openssl/dh.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/dh.c b/src/usr.bin/openssl/dh.c
index eb51b4b12f..b8d4054e56 100644
--- a/src/usr.bin/openssl/dh.c
+++ b/src/usr.bin/openssl/dh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh.c,v 1.9 2017/01/20 08:57:11 deraadt Exp $ */ 1/* $OpenBSD: dh.c,v 1.10 2018/02/07 04:57:06 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -290,10 +290,8 @@ dh_main(int argc, char **argv)
290 290
291end: 291end:
292 BIO_free(in); 292 BIO_free(in);
293 if (out != NULL) 293 BIO_free_all(out);
294 BIO_free_all(out); 294 DH_free(dh);
295 if (dh != NULL)
296 DH_free(dh);
297 295
298 return (ret); 296 return (ret);
299} 297}