summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-07-10 16:28:28 +0000
committerume <ume@FreeBSD.org>2000-07-10 16:28:28 +0000
commitae7af5f4bd1ef5d4c150feeb67d37489eb00d3a0 (patch)
treeb8a670ff55b41c3a6bd5ccc053a730272a75ba2b /lib
parentf5a6b75d841c7014bc80db9298b9e5bca7ad3f77 (diff)
downloadFreeBSD-src-ae7af5f4bd1ef5d4c150feeb67d37489eb00d3a0.zip
FreeBSD-src-ae7af5f4bd1ef5d4c150feeb67d37489eb00d3a0.tar.gz
Free chunks obtained by getaddrinfo(3).
Approved by: des
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index 59f92cb..e1dea33 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -205,6 +205,7 @@ _fetch_connect(char *host, int port, int af, int verbose)
close(sd);
sd = -1;
}
+ freeaddrinfo(res0);
if (sd < 0) {
_fetch_syserr();
return -1;
OpenPOWER on IntegriCloud