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.
This commit is contained in:
Amaury Denoyelle 2021-10-20 15:11:37 +02:00
parent 926712ab2d
commit 8e358af8a3

View File

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