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/pkeyutl.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/pkeyutl.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
1 | /* $OpenBSD: pkeyutl.c,v 1.12 2018/01/28 09:21:34 inoguchi Exp $ */ | 1 | /* $OpenBSD: pkeyutl.c,v 1.13 2018/02/07 04:57:06 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -310,8 +310,7 @@ pkeyutl_main(int argc, char **argv) | |||
310 | BIO_write(out, buf_out, buf_outlen); | 310 | BIO_write(out, buf_out, buf_outlen); |
311 | 311 | ||
312 | end: | 312 | end: |
313 | if (ctx) | 313 | EVP_PKEY_CTX_free(ctx); |
314 | EVP_PKEY_CTX_free(ctx); | ||
315 | BIO_free(in); | 314 | BIO_free(in); |
316 | BIO_free_all(out); | 315 | BIO_free_all(out); |
317 | free(buf_in); | 316 | free(buf_in); |