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/asn1pars.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/asn1pars.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/asn1pars.c b/src/usr.bin/openssl/asn1pars.c index fe66b35937..0f432c246b 100644 --- a/src/usr.bin/openssl/asn1pars.c +++ b/src/usr.bin/openssl/asn1pars.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1pars.c,v 1.7 2017/01/20 08:57:11 deraadt Exp $ */ | 1 | /* $OpenBSD: asn1pars.c,v 1.8 2018/02/07 04:57:06 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -416,8 +416,7 @@ end: | |||
416 | if (ret != 0) | 416 | if (ret != 0) |
417 | ERR_print_errors(bio_err); | 417 | ERR_print_errors(bio_err); |
418 | BUF_MEM_free(buf); | 418 | BUF_MEM_free(buf); |
419 | if (at != NULL) | 419 | ASN1_TYPE_free(at); |
420 | ASN1_TYPE_free(at); | ||
421 | sk_OPENSSL_STRING_free(asn1pars_config.osk); | 420 | sk_OPENSSL_STRING_free(asn1pars_config.osk); |
422 | OBJ_cleanup(); | 421 | OBJ_cleanup(); |
423 | 422 | ||