*lhostp = lhost;
ret = true;
} else {
+ sudo_warnx(U_("%s: %s"), __func__,
+ U_("unable to allocate memory"));
free(shost);
free(lhost);
ret = -1;
*/
if (strcmp(user_runhost, user_host) == 0) {
if (get_ipa_hostname(&handle->ipa_shost, &handle->ipa_host) == -1) {
- sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
free(handle);
debug_return_int(ENOMEM);
}
handle = nss->handle;
sudo_dso_unload(handle->ssslib);
free(handle->ipa_host);
- free(handle->ipa_shost);
+ if (handle->ipa_host != handle->ipa_shost)
+ free(handle->ipa_shost);
free(handle);
nss->handle = NULL;
}