projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebc3fc1
)
MINOR: quic: RX packets memory leak
author
Frédéric Lécaille
<flecaille@haproxy.com>
Wed, 22 Sep 2021 13:10:49 +0000
(15:10 +0200)
committer
Amaury Denoyelle
<adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000
(15:27 +0200)
Missing RX packet reference counter decrementation at the lowest level.
This leaded the memory reserved for RX packets to never be released.
src/xprt_quic.c
patch
|
blob
|
history
diff --git
a/src/xprt_quic.c
b/src/xprt_quic.c
index
80591e1
..
e9055e9
100644
(file)
--- 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