From c7d1d02db43b809b96238f8b557cfc2b8caa4b8a Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 7 Feb 2018 04:57:06 +0000 Subject: Remove guards around *_free() calls since these functions handle NULL. --- src/usr.bin/openssl/s_time.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/usr.bin/openssl/s_time.c') diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c index a533679776..e8e8a273a7 100644 --- a/src/usr.bin/openssl/s_time.c +++ b/src/usr.bin/openssl/s_time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_time.c,v 1.21 2018/02/06 02:40:29 tb Exp $ */ +/* $OpenBSD: s_time.c,v 1.22 2018/02/07 04:57:06 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -473,8 +473,7 @@ next: ret = 0; end: - if (scon != NULL) - SSL_free(scon); + SSL_free(scon); if (tm_ctx != NULL) { SSL_CTX_free(tm_ctx); -- cgit v1.2.3-55-g6feb