diff --git a/lib/fetch/common.c b/lib/fetch/common.c index 705c843a..441a2d3f 100644 --- a/lib/fetch/common.c +++ b/lib/fetch/common.c @@ -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); }