BUG/MINOR: quic: TX frames memleak
Missing call to pool_free() for quic_frame objects
Must be backported to 2.6.
diff --git a/src/xprt_quic.c b/src/xprt_quic.c
index 399b3e3..2ed8adb 100644
--- a/src/xprt_quic.c
+++ b/src/xprt_quic.c
@@ -1764,6 +1764,7 @@
if (strm_frm->offset.key + strm_frm->len <= stream_desc->ack_offset) {
TRACE_DEVEL("ignored frame in already acked range",
QUIC_EV_CONN_PRSAFRM, qc, frm);
+ pool_free(pool_head_quic_frame, frm);
continue;
}
else if (strm_frm->offset.key < stream_desc->ack_offset) {
@@ -3424,6 +3425,7 @@
LIST_INIT(&frm->reflist);
cid = new_quic_cid(&qc->cids, qc, i);
if (!cid) {
+ pool_free(pool_head_quic_frame, frm);
TRACE_ERROR("CID allocation error", QUIC_EV_CONN_IO_CB, qc);
goto err;
}