From baea284c3c3bfa64bbc42b31071835ef398eeea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 2 Jun 2021 15:04:03 +0200 Subject: [PATCH] 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. --- src/xprt_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 33e5b14bb..9639e0464 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--; }