summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_alt.c
diff options
context:
space:
mode:
authortb <>2025-03-06 07:17:45 +0000
committertb <>2025-03-06 07:17:45 +0000
commit7ba73de5bad4e9854b7bc986be7422f1442cf0f0 (patch)
treedf2c2d15eb592c99b1647a2aa8e6635bb7807ccc /src/lib/libcrypto/x509/x509_alt.c
parent7cf910209b8c19059d2454d770b7774814cfdc6e (diff)
downloadopenbsd-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/x509/x509_alt.c')
-rw-r--r--src/lib/libcrypto/x509/x509_alt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_alt.c b/src/lib/libcrypto/x509/x509_alt.c
index 8981e4c4fb..e19a49ca86 100644
--- a/src/lib/libcrypto/x509/x509_alt.c
+++ b/src/lib/libcrypto/x509/x509_alt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_alt.c,v 1.17 2024/07/13 15:08:58 tb Exp $ */ 1/* $OpenBSD: x509_alt.c,v 1.18 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. 3 * project.
4 */ 4 */
@@ -794,7 +794,6 @@ do_dirname(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx)
794 if (!ret) 794 if (!ret)
795 X509_NAME_free(nm); 795 X509_NAME_free(nm);
796 gen->d.dirn = nm; 796 gen->d.dirn = nm;
797 X509V3_section_free(ctx, sk);
798 797
799 return ret; 798 return ret;
800} 799}