BUG/MINOR: quic: Possible memory leak from TX packets
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 24 Apr 2023 09:11:55 +0000 (11:11 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Mon, 24 Apr 2023 09:38:28 +0000 (11:38 +0200)
commitce0bb338c67386f3da2f3ba1329714ac6272b7d5
tree80c2fc909ce8d826b20b8c620d68d75fd0f3a95f
parente95e00e30578069ac78883bc1045bb5f341bb2d2
BUG/MINOR: quic: Possible memory leak from TX packets

This bug arrived with this commit which was not sufficient:

     BUG/MEDIUM: quic: Missing TX buffer draining from qc_send_ppkts()

Indeed, there were also remaining allocated TX packets to be released and
their TX frames.
Implement qc_purge_tx_buf() to do so which depends on qc_free_tx_coalesced_pkts()
and qc_free_frm_list().

Must be backported to 2.7.
src/quic_conn.c