fixed memory leak in dns-resolver