diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-11-05 19:24:06 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-11-05 19:24:06 +0000 |
commit | fbfbd0d28e3996b06e60f9728f23562e832c1186 (patch) | |
tree | 9280dee6cbdc272fa7c9d33734589a9488cdbaf7 /libc/inet/resolv.c | |
parent | d06e73283e7082b19872f3a5dbb6280c78efae81 (diff) |
Patch from Jari Korva <jari.korva@vtt.fi> to fix a memory leak
in dns_lookup.
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r-- | libc/inet/resolv.c | 1 |
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: |