diff options
author | jsing <> | 2018-02-07 04:57:06 +0000 |
---|---|---|
committer | jsing <> | 2018-02-07 04:57:06 +0000 |
commit | c7d1d02db43b809b96238f8b557cfc2b8caa4b8a (patch) | |
tree | 1258fdeb45b6c2032685b30b591acc869df74b4c /src/usr.bin/openssl/dh.c | |
parent | 91513e7059067d6b8438c18b4a274825340acad0 (diff) | |
download | openbsd-c7d1d02db43b809b96238f8b557cfc2b8caa4b8a.tar.gz openbsd-c7d1d02db43b809b96238f8b557cfc2b8caa4b8a.tar.bz2 openbsd-c7d1d02db43b809b96238f8b557cfc2b8caa4b8a.zip |
Remove guards around *_free() calls since these functions handle NULL.
Diffstat (limited to '')
-rw-r--r-- | src/usr.bin/openssl/dh.c | 8 |
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 | ||
291 | end: | 291 | end: |
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 | } |