From: Frédéric Lécaille Date: Wed, 2 Jun 2021 13:04:03 +0000 (+0200) Subject: BUG/MINOR: quic: Wrong memory free in quic_update_ack_ranges_list() X-Git-Tag: v2.5-dev8~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baea284c3c3bfa64bbc42b31071835ef398eeea1;p=thirdparty%2Fhaproxy.git BUG/MINOR: quic: Wrong memory free in quic_update_ack_ranges_list() Wrong call to free() in place of pool_free() for an object allocated from a pool memory. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 33e5b14bbe..9639e04643 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -2369,7 +2369,7 @@ int quic_update_ack_ranges_list(struct quic_arngs *arngs, if (next_node->last > new_node->last) new_node->last = next_node->last; eb64_delete(next); - free(next_node); + pool_free(pool_head_quic_arng, next_node); /* Decrement the size of these ranges. */ arngs->sz--; }