From c1959b39155d87aa0101463b5d1519144b1e5ec3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 09:08:05 +0200 Subject: [PATCH] lib/fetch/common.c: resource leak (CID 62681) --- lib/fetch/common.c | 1 + 1 file changed, 1 insertion(+) 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); }