]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: Wrong memory free in quic_update_ack_ranges_list()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 2 Jun 2021 13:04:03 +0000 (15:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
Wrong call to free() in place of pool_free() for an object allocated from a pool
memory.

src/xprt_quic.c

index 33e5b14bbe92b61071ad189ca60bcbbd0ee42536..9639e0464388f846a835dd763e399a49babc786a 100644 (file)
@@ -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--;
                }