summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-05 19:24:06 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-05 19:24:06 +0000
commitfbfbd0d28e3996b06e60f9728f23562e832c1186 (patch)
tree9280dee6cbdc272fa7c9d33734589a9488cdbaf7 /libc
parentd06e73283e7082b19872f3a5dbb6280c78efae81 (diff)
Patch from Jari Korva <jari.korva@vtt.fi> to fix a memory leak
in dns_lookup.
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/resolv.c1
1 files changed, 1 insertions, 0 deletions
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: