]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux_quic: free frames emitted with QMux master
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 28 Apr 2026 09:02:23 +0000 (11:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 28 Apr 2026 13:59:28 +0000 (15:59 +0200)
commit4bffea85798b0bf2d83cf863c912bdc6ea0de4cc
treeb68f6c0beed5ece0e5cc0448d60197de95f030b2
parent444932346423bbb5dc966c04c8bce2bfcd463453
BUG/MINOR: mux_quic: free frames emitted with QMux

When using QUIC, mux instantiates quic_frame objects but does not free
them. This is performed only when acknowledgment are received.

This is not the case for QMux protocol, as the transport layer is much
simpler in this case. As such, mux is responsible to free up the frames
after emission.

This patch fixes qcc_qstrm_send_frames() by adding the necessary
qc_frm_free() calls as soon as a frame is emitted. This fixes a memory
leak. This function ensures that the freed object is removed from its
parent list, so LIST_DEL_INIT() is not necessary anymore.

No need to backport.
src/mux_quic_qstrm.c