diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-07 04:57:07 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-07 04:57:07 +0000 |
commit | 173489263120a98b6c445619b94bdd96db64c836 (patch) | |
tree | 8af8759b2d78fbb9f542287722d0b1c9f42970dc /usr.bin/openssl/asn1pars.c | |
parent | ae9cf602566613d280301a05a36fd5772b209fef (diff) |
Remove guards around *_free() calls since these functions handle NULL.
Diffstat (limited to 'usr.bin/openssl/asn1pars.c')
-rw-r--r-- | usr.bin/openssl/asn1pars.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/openssl/asn1pars.c b/usr.bin/openssl/asn1pars.c index fe66b359373..0f432c246bc 100644 --- a/usr.bin/openssl/asn1pars.c +++ b/usr.bin/openssl/asn1pars.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1pars.c,v 1.7 2017/01/20 08:57:11 deraadt Exp $ */ +/* $OpenBSD: asn1pars.c,v 1.8 2018/02/07 04:57:06 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -416,8 +416,7 @@ end: if (ret != 0) ERR_print_errors(bio_err); BUF_MEM_free(buf); - if (at != NULL) - ASN1_TYPE_free(at); + ASN1_TYPE_free(at); sk_OPENSSL_STRING_free(asn1pars_config.osk); OBJ_cleanup(); |