summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/gendh.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/usr.bin/openssl/gendh.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/gendh.c b/src/usr.bin/openssl/gendh.c
index 7c037f44e1..9cbbe42b19 100644
--- a/src/usr.bin/openssl/gendh.c
+++ b/src/usr.bin/openssl/gendh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gendh.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ 1/* $OpenBSD: gendh.c,v 1.9 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 *
@@ -189,10 +189,8 @@ gendh_main(int argc, char **argv)
189end: 189end:
190 if (ret != 0) 190 if (ret != 0)
191 ERR_print_errors(bio_err); 191 ERR_print_errors(bio_err);
192 if (out != NULL) 192 BIO_free_all(out);
193 BIO_free_all(out); 193 DH_free(dh);
194 if (dh != NULL)
195 DH_free(dh);
196 194
197 return (ret); 195 return (ret);
198} 196}