Fix reference counting: unreference nodes that are succesfully inserted in the tree, detach created nodes, and cleanup the interior data in dns_qpdata_destroy().
Fix reference counting: unreference nodes that are succesfully inserted in the tree, detach created nodes, and cleanup the interior data in dns_qpdata_destroy().