]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: remove unneeded memset 0 for idle conns
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 Oct 2021 13:11:37 +0000 (15:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Oct 2021 15:29:25 +0000 (17:29 +0200)
Remove the zeroing of an idle connection node on remove from a tree.
This is not needed and should improve slightly the performance of idle
connection usage. Besides, it breaks the memory poisoning feature.

src/connection.c

index f8b704b67799199d5ffeae5c12ffd9150c1ae4a4..24fa069e40950959475a9ead131a071f8625d595 100644 (file)
@@ -54,7 +54,6 @@ static int pp2_never_send_local;
 void conn_delete_from_tree(struct ebmb_node *node)
 {
        ebmb_delete(node);
-       memset(node, 0, sizeof(*node));
 }
 
 int conn_create_mux(struct connection *conn)