Call freeaddrinfo() in rtp.c

Plug a (small) memory leak from getaddrinfo()
This commit is contained in:
Brendan Shanks
2013-04-03 08:53:53 -07:00
parent 66ccc1ef0e
commit 883d462192
+2
View File
@@ -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!");