projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d1bf2
)
Fix a fd leak in the udp sender.
author
Andre Noll
<maan@systemlinux.org>
Wed, 6 Oct 2010 20:51:30 +0000
(22:51 +0200)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/udp_send.c
b/udp_send.c
index
0343feb
..
4957725
100644
(file)
--- 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);