Commit 721bc9a9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Valgrind hints.

parent 4a1dd432
......@@ -414,4 +414,6 @@ local_socket_destroy(int i)
free(local_sockets[i].buf);
close(local_sockets[i].fd);
local_sockets[i] = local_sockets[--num_local_sockets];
VALGRIND_MAKE_MEM_UNDEFINED(local_sockets + num_local_sockets,
sizeof(struct local_socket));
}
......@@ -275,6 +275,7 @@ flush_route(struct babel_route *route)
(route_slots - i - 1) * sizeof(struct babel_route*));
routes[route_slots - 1] = NULL;
route_slots--;
VALGRIND_MAKE_MEM_UNDEFINED(routes + route_slots, sizeof(struct route *));
}
if(route_slots == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment