udputils: don't free invalid memory

As spotted by benjiG in IRC.
don't free invalid memory when getaddrinfo failed.
This commit is contained in:
Wim Taymans 2009-06-18 11:54:22 +02:00
parent b8e88710e1
commit 8f43709e00

View file

@ -107,8 +107,8 @@ gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
ret = EAI_ADDRFAMILY; ret = EAI_ADDRFAMILY;
} }
beach:
freeaddrinfo (res); freeaddrinfo (res);
beach:
return ret; return ret;
} }