BUG/MINOR: quic: Missing ACK range deallocations

free_quic_arngs() was implemented but not used. Let's call it from
quic_conn_release().
This commit is contained in:
Frédéric Lécaille 2022-04-01 11:57:19 +02:00 committed by Amaury Denoyelle
parent 96fd1633e1
commit 64670884ba

View File

@ -3122,7 +3122,7 @@ static int quic_build_post_handshake_frames(struct quic_conn *qc)
}
/* Deallocate <l> list of ACK ranges. */
void free_quic_arngs(struct quic_arngs *arngs)
void quic_free_arngs(struct quic_arngs *arngs)
{
struct eb64_node *n;
struct quic_arng_node *ar;
@ -3802,6 +3802,9 @@ static void quic_conn_release(struct quic_conn *qc)
pool_free(pool_head_quic_tls_secret, app_tls_ctx->rx.secret);
pool_free(pool_head_quic_tls_secret, app_tls_ctx->tx.secret);
for (i = 0; i < QUIC_TLS_PKTNS_MAX; i++)
quic_free_arngs(&qc->pktns[i].rx.arngs);
pool_free(pool_head_quic_conn_rxbuf, qc->rx.buf.area);
pool_free(pool_head_quic_conn, qc);
TRACE_PROTO("QUIC conn. freed", QUIC_EV_CONN_FREED, qc);