From 0fc26087e92f67740cf785a1543b145b733ea2ea Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 7 Jul 2023 11:02:38 +0000 Subject: * support/ab.c (ssl_proceed_handshake): Fix X509 * leak. PR: 64264 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910847 13f79535-47bb-0310-9956-ffa450edef68 --- support/ab.c | 1 + 1 file changed, 1 insertion(+) (limited to 'support') diff --git a/support/ab.c b/support/ab.c index 01aee88253..f21fb8ea97 100644 --- a/support/ab.c +++ b/support/ab.c @@ -858,6 +858,7 @@ static void ssl_proceed_handshake(struct connection *c) SSL_get_version(c->ssl), SSL_CIPHER_get_name(ci), pk_bits, sk_bits); + if (cert) X509_free(cert); } #if OPENSSL_VERSION_NUMBER >= 0x10002000L if (!worker->metrics.ssl_tmp_key[0] && !worker->metrics.ssl_tmp_key[1]) { -- cgit v1.2.3