Fix memory leak in dns resolution during spnego authentication using kerberos.