From 0eb1ce203c17c920ea9a0f1565f68db20b3edb1f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 6 Oct 2010 22:51:30 +0200 Subject: [PATCH] Fix a fd leak in the udp sender. When deleting the UDP target, we forgot to close the socket fd. --- udp_send.c | 1 + 1 file changed, 1 insertion(+) diff --git a/udp_send.c b/udp_send.c index 0343feb6..4957725d 100644 --- a/udp_send.c +++ b/udp_send.c @@ -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); -- 2.39.5