summaryrefslogtreecommitdiffstats
path: root/usr.bin/openssl/ec.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-02-07 04:57:06 +0000
committerjsing <jsing@openbsd.org>2018-02-07 04:57:06 +0000
commit4fe8ecdd3e465327690be8f444c310fb6ffded9c (patch)
tree689b0c6765b983e88f9e9cfed95f862054f377ff /usr.bin/openssl/ec.c
parentRemove guards around *_free() calls since these functions handle NULL. (diff)
downloadwireguard-openbsd-4fe8ecdd3e465327690be8f444c310fb6ffded9c.tar.xz
wireguard-openbsd-4fe8ecdd3e465327690be8f444c310fb6ffded9c.zip
Remove guards around *_free() calls since these functions handle NULL.
Diffstat (limited to 'usr.bin/openssl/ec.c')
-rw-r--r--usr.bin/openssl/ec.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/openssl/ec.c b/usr.bin/openssl/ec.c
index e557990cb9b..7ef2ac8de11 100644
--- a/usr.bin/openssl/ec.c
+++ b/usr.bin/openssl/ec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */
+/* $OpenBSD: ec.c,v 1.10 2018/02/07 04:57:06 jsing Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -394,10 +394,8 @@ ec_main(int argc, char **argv)
ret = 0;
end:
BIO_free(in);
- if (out)
- BIO_free_all(out);
- if (eckey)
- EC_KEY_free(eckey);
+ BIO_free_all(out);
+ EC_KEY_free(eckey);
free(passin);
free(passout);