From: Andre Noll Date: Sun, 21 Mar 2010 12:06:32 +0000 (+0100) Subject: udp_recv: Fix a memory leak in case mcast_receiver_setup() failed. X-Git-Tag: v0.4.2~20^2~3 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=85c25aaa851aa20aba167b0fa5c827d115079681;p=paraslash.git udp_recv: Fix a memory leak in case mcast_receiver_setup() failed. We have to free the private_data structure. --- diff --git a/udp_recv.c b/udp_recv.c index c768d324..8dc8edc0 100644 --- a/udp_recv.c +++ b/udp_recv.c @@ -209,7 +209,7 @@ static int udp_recv_open(struct receiver_node *rn) ret = mcast_receiver_setup(purd->fd, iface); if (ret < 0) { close(purd->fd); - return ret; + goto err; } ret = mark_fd_nonblocking(purd->fd);