Fixed memory leak in fnet-dc's udpread.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 16 Mar 2008 05:41:19 +0000 (06:41 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 16 Mar 2008 05:41:19 +0000 (06:41 +0100)
daemon/fnet-dc.c

index 7773577..317a133 100644 (file)
@@ -2951,6 +2951,7 @@ static void udpread(struct socket *sk, void *data)
                    if((hub->sk != NULL) && addreq(addrbuf, (struct sockaddr *)&hubaddr))
                    {
                        myfn = fn;
+                       free(addrbuf);
                        break;
                    }
                    free(addrbuf);