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/pkeyutl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/usr.bin/openssl/pkeyutl.c') diff --git a/src/usr.bin/openssl/pkeyutl.c b/src/usr.bin/openssl/pkeyutl.c index dd52e93dfa..659c2b2916 100644 --- a/src/usr.bin/openssl/pkeyutl.c +++ b/src/usr.bin/openssl/pkeyutl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkeyutl.c,v 1.12 2018/01/28 09:21:34 inoguchi Exp $ */ +/* $OpenBSD: pkeyutl.c,v 1.13 2018/02/07 04:57:06 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -310,8 +310,7 @@ pkeyutl_main(int argc, char **argv) BIO_write(out, buf_out, buf_outlen); end: - if (ctx) - EVP_PKEY_CTX_free(ctx); + EVP_PKEY_CTX_free(ctx); BIO_free(in); BIO_free_all(out); free(buf_in); -- cgit v1.2.3-55-g6feb