From ae7af5f4bd1ef5d4c150feeb67d37489eb00d3a0 Mon Sep 17 00:00:00 2001 From: ume Date: Mon, 10 Jul 2000 16:28:28 +0000 Subject: Free chunks obtained by getaddrinfo(3). Approved by: des --- lib/libfetch/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libfetch/common.c') 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; -- cgit v1.1