static char *dccp_info(void)
{
- static char *buf;
+ char *buf;
int num_clients = 0;
struct sender_client *sc, *tmp;
- free(buf);
list_for_each_entry_safe(sc, tmp, &clients, node)
num_clients++;
buf = make_message("dccp connected clients: %d\n", num_clients);