From 6b746330692380f7e88fc757b7124b5a9c88ebd8 Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Wed, 4 Jun 2025 11:49:14 +0200 Subject: [PATCH] BUG/MINOR: quic: Missing SSL session object freeing qc_alloc_ssl_sock_ctx() allocates an SSL_CTX object for each connection. It also allocates an SSL object. When this function failed, it freed only the SSL_CTX object. The correct way to free both of them is to call qc_free_ssl_sock_ctx(). Must be backported as far as 2.6. --- src/quic_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quic_ssl.c b/src/quic_ssl.c index 06075ef31..4b2cede18 100644 --- a/src/quic_ssl.c +++ b/src/quic_ssl.c @@ -1174,6 +1174,6 @@ int qc_alloc_ssl_sock_ctx(struct quic_conn *qc) err: TRACE_DEVEL("leaving on error", QUIC_EV_CONN_NEW, qc); - pool_free(pool_head_quic_ssl_sock_ctx, ctx); + qc_free_ssl_sock_ctx(&ctx); goto leave; } -- 2.47.3