fixed memory leak in whois