diff options
author | tb <> | 2025-03-06 07:17:45 +0000 |
---|---|---|
committer | tb <> | 2025-03-06 07:17:45 +0000 |
commit | 7ba73de5bad4e9854b7bc986be7422f1442cf0f0 (patch) | |
tree | df2c2d15eb592c99b1647a2aa8e6635bb7807ccc /src/lib/libcrypto/asn1 | |
parent | 7cf910209b8c19059d2454d770b7774814cfdc6e (diff) | |
download | openbsd-7ba73de5bad4e9854b7bc986be7422f1442cf0f0.tar.gz openbsd-7ba73de5bad4e9854b7bc986be7422f1442cf0f0.tar.bz2 openbsd-7ba73de5bad4e9854b7bc986be7422f1442cf0f0.zip |
Garbage collect X509V3_section_free()
Historically, X509V3_section_free() could be customized by the conf db
method to release memory allocated by X509V3_get_section(). This is no
longer supported, so it is always a noop and can be removed.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_gen.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_gen.c b/src/lib/libcrypto/asn1/asn1_gen.c index 0b4cfe00a9..f74cf9ae74 100644 --- a/src/lib/libcrypto/asn1/asn1_gen.c +++ b/src/lib/libcrypto/asn1/asn1_gen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_gen.c,v 1.24 2024/08/31 10:03:03 tb Exp $ */ | 1 | /* $OpenBSD: asn1_gen.c,v 1.25 2025/03/06 07:17:45 tb 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 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -486,10 +486,7 @@ asn1_multi(int utype, const char *section, X509V3_CTX *cnf) | |||
486 | 486 | ||
487 | bad: | 487 | bad: |
488 | free(der); | 488 | free(der); |
489 | if (sk) | 489 | sk_ASN1_TYPE_pop_free(sk, ASN1_TYPE_free); |
490 | sk_ASN1_TYPE_pop_free(sk, ASN1_TYPE_free); | ||
491 | if (sect) | ||
492 | X509V3_section_free(cnf, sect); | ||
493 | 490 | ||
494 | return ret; | 491 | return ret; |
495 | } | 492 | } |