From: Frédéric Lécaille Date: Wed, 22 Sep 2021 13:10:49 +0000 (+0200) Subject: MINOR: quic: RX packets memory leak X-Git-Tag: v2.5-dev8~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=310d1bd08f421c557beb1786fc25acfcb1645a78;p=thirdparty%2Fhaproxy.git MINOR: quic: RX packets memory leak Missing RX packet reference counter decrementation at the lowest level. This leaded the memory reserved for RX packets to never be released. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 80591e1166..e9055e92e3 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -4610,6 +4610,7 @@ static ssize_t quic_dgram_read(char *buf, size_t len, void *owner, if (!pkt_len) break; } + quic_rx_packet_refdec(pkt); } while (pos < end); /* Increasing the received bytes counter by the UDP datagram length