]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 0343feb633c8d34319c70320e0081c701d18d0fe..4957725d5365b8da71cc2016b95633967000be2c 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);