summaryrefslogtreecommitdiffstats
path: root/usr.bin/openssl/ec.c
diff options
context:
space:
mode:
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);