From 883d462192ce4d4057969db2769c7a0fda27807c Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Wed, 3 Apr 2013 08:53:53 -0700 Subject: [PATCH] Call freeaddrinfo() in rtp.c Plug a (small) memory leak from getaddrinfo() --- rtp.c | 2 ++ 1 file changed, 2 insertions(+) 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!");