From 85c25aaa851aa20aba167b0fa5c827d115079681 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 21 Mar 2010 13:06:32 +0100 Subject: [PATCH] udp_recv: Fix a memory leak in case mcast_receiver_setup() failed. We have to free the private_data structure. --- udp_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5