]> git.tue.mpg.de Git - paraslash.git/commitdiff
udp_recv: Fix a memory leak in case mcast_receiver_setup() failed.
authorAndre Noll <maan@systemlinux.org>
Sun, 21 Mar 2010 12:06:32 +0000 (13:06 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 21 Mar 2010 12:06:32 +0000 (13:06 +0100)
We have to free the private_data structure.

udp_recv.c

index c768d3243ead5fa5e8be4c68ba276cc2193a7a49..8dc8edc0a3c9588492a47a5d6389236c601dbdbd 100644 (file)
@@ -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);