lib/fetch/common.c: resource leak (CID 62681)

This commit is contained in:
Juan RP 2014-10-05 09:08:05 +02:00
parent 9d90c75fcc
commit c1959b3915

View File

@ -264,6 +264,7 @@ fetch_bind(int sd, int af, const char *addr)
if (bind(sd, res->ai_addr, res->ai_addrlen) == 0)
return (0);
}
freeaddrinfo(res0);
return (-1);
}