(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:
@@ -189,6 +189,5 @@ krb5_get_host_realm(krb5_context context,
|
||||
(*realms)[1] = NULL;
|
||||
return 0;
|
||||
}
|
||||
free(*realms);
|
||||
return KRB5_ERR_HOST_REALM_UNKNOWN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user