mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: quic: free SSL context on quic_conn free
Free the SSL context attached to the quic_conn when freeing the connection. This fixes a memory leak for every QUIC connection.
This commit is contained in:
parent
760da3be57
commit
2d9794b03a
1 changed files with 3 additions and 1 deletions
|
|
@ -3389,8 +3389,10 @@ static void quic_conn_drop(struct quic_conn *qc)
|
|||
return;
|
||||
|
||||
conn_ctx = HA_ATOMIC_LOAD(&qc->xprt_ctx);
|
||||
if (conn_ctx)
|
||||
if (conn_ctx) {
|
||||
SSL_free(conn_ctx->ssl);
|
||||
pool_free(pool_head_quic_conn_ctx, conn_ctx);
|
||||
}
|
||||
|
||||
for (i = 0; i < QUIC_TLS_ENC_LEVEL_MAX; i++)
|
||||
quic_conn_enc_level_uninit(&qc->els[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue