From fbfbd0d28e3996b06e60f9728f23562e832c1186 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 5 Nov 2001 19:24:06 +0000 Subject: Patch from Jari Korva to fix a memory leak in dns_lookup. --- libc/inet/resolv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libc') diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 97e3a3897..aef1f7935 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -698,6 +698,7 @@ int dns_lookup(const char *name, int type, int nscount, char **nsip, *outpacket = packet; else free(packet); + free(lookup); return (0); /* success! */ tryall: -- cgit v1.2.3