dccp_senc.d: No need to use static variable in dccp_info().
authorAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 08:32:43 +0000 (09:32 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 08:32:43 +0000 (09:32 +0100)
dccp_send.c

index c68f577..c94e162 100644 (file)
@@ -104,11 +104,10 @@ static void dccp_shutdown_clients(void)
 
 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);