summaryrefslogtreecommitdiffstats
path: root/support/ab.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2023-07-07 13:02:38 +0200
committerJoe Orton <jorton@apache.org>2023-07-07 13:02:38 +0200
commit0fc26087e92f67740cf785a1543b145b733ea2ea (patch)
treee236027c46ed6168316cec1ca0411bec152226e9 /support/ab.c
parentutil_filter: More useful logging for brigade setaside/reinstate/adopt. (diff)
downloadapache2-0fc26087e92f67740cf785a1543b145b733ea2ea.tar.xz
apache2-0fc26087e92f67740cf785a1543b145b733ea2ea.zip
* 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
Diffstat (limited to 'support/ab.c')
-rw-r--r--support/ab.c1
1 files changed, 1 insertions, 0 deletions
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]) {