lib/fetch/common.c: resource leak (CID 62681)
This commit is contained in:
parent
9d90c75fcc
commit
c1959b3915
@ -264,6 +264,7 @@ fetch_bind(int sd, int af, const char *addr)
|
|||||||
if (bind(sd, res->ai_addr, res->ai_addrlen) == 0)
|
if (bind(sd, res->ai_addr, res->ai_addrlen) == 0)
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
freeaddrinfo(res0);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user