]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: fix memleak on quic-conn streams cleaning
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 1 Apr 2022 14:41:21 +0000 (16:41 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Apr 2022 08:10:23 +0000 (10:10 +0200)
commitc9acc31018d8b8736f4c6276479e9e0e4366fb87
treeb61fdb3e0cc007a2a2aefc7501364869af1212d8
parent6057b4090ee34f89314cf5359c32fe9dc027f69c
BUG/MINOR: fix memleak on quic-conn streams cleaning

When freeing a quic-conn, the streams resources attached to it must be
cleared. This code is already implemented but the streams buffer was not
deallocated.

Fix this by using the function qc_stream_desc_free. This existing
function centralize all operations to properly free all streams
elements, attached both to the MUX and the quic-conn.

This fixes a memory leak which can happen for each released connection.
src/xprt_quic.c