From 725f35a7e51db2b02ed0b978f30bf4faaea40d6e Mon Sep 17 00:00:00 2001 From: Munechika SUMIKAWA Date: Sun, 29 Oct 2000 16:10:48 +0000 Subject: [PATCH] Fix memory leak. Obtained from: KAME --- lib/libc/net/res_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c index b1adbfc92a3d..9203b695459a 100644 --- a/lib/libc/net/res_init.c +++ b/lib/libc/net/res_init.c @@ -339,6 +339,8 @@ res_init() } nserv++; } + if (res) + freeaddrinfo(res); continue; } #ifdef RESOLVSORT