(krb5_get_host_realm): don't free if we didn't manage to set anything

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6272 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-05-21 13:18:55 +00:00
parent fa88e29d84
commit 31423b5edb

View File

@@ -189,6 +189,5 @@ krb5_get_host_realm(krb5_context context,
(*realms)[1] = NULL;
return 0;
}
free(*realms);
return KRB5_ERR_HOST_REALM_UNKNOWN;
}