From: Amaury Denoyelle Date: Wed, 20 Oct 2021 13:11:37 +0000 (+0200) Subject: MINOR: connection: remove unneeded memset 0 for idle conns X-Git-Tag: v2.5-dev11~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e358af8a3454dc64fdc4923d8c78c5b622d6fb8;p=thirdparty%2Fhaproxy.git MINOR: connection: remove unneeded memset 0 for idle conns 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. --- diff --git a/src/connection.c b/src/connection.c index f8b704b677..24fa069e40 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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)