]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux_quic: fix memory leak of rx app_buf on stream free
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 26 Jun 2026 14:51:52 +0000 (16:51 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Fri, 26 Jun 2026 15:16:38 +0000 (17:16 +0200)
commit1cb254ad77923d205900ccdc866434977be292ff
treea14b801a48b4cdca9d5add2ae12d2b8eeda02f94
parent78639c7cf7c4f9259117c193d403b9f66bdf92a4
BUG/MEDIUM: mux_quic: fix memory leak of rx app_buf on stream free

When freeing a QUIC stream (qcs), the receive application buffer
(qcs->rx.app_buf) was not released if it still contained data or
had been allocated. This led to a memory leak over time as streams
were opened and closed.

Fix this by explicitly freeing qcs->rx.app_buf via b_free() in
qcs_free() if its size is non-zero, and call offer_buffers() to
notify the buffer pool.

This should be backported as far as 2.6.
src/mux_quic.c