diff --git a/rtp.c b/rtp.c index 978b96b9..beea88e2 100644 --- a/rtp.c +++ b/rtp.c @@ -104,6 +104,8 @@ static int bind_port(SOCKADDR *remote) { sock = socket(remote->SAFAMILY, SOCK_DGRAM, IPPROTO_UDP); ret = bind(sock, info->ai_addr, info->ai_addrlen); + freeaddrinfo(info); + if (ret < 0) die("could not bind a UDP port!");