There are a number of dns_name_dup calls where the result is not checked. These all need to be checked.