Fix a fd leak in the udp sender.
authorAndre Noll <maan@systemlinux.org>
Wed, 6 Oct 2010 20:51:30 +0000 (22:51 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 Oct 2010 11:18:24 +0000 (12:18 +0100)
When deleting the UDP target, we forgot to close the socket fd.

udp_send.c

index 0343feb..4957725 100644 (file)
@@ -69,6 +69,7 @@ static void udp_delete_target(struct sender_client *sc, const char *msg)
 
        PARA_NOTICE_LOG("deleting %s (%s) from list\n", sc->name, msg);
        udp_close_target(sc);
+       close(sc->fd);
        vss_del_fec_client(ut->fc);
        list_del(&sc->node);
        free(sc->name);