krb5: Fix leaks

This commit is contained in:
Nicolas Williams
2023-01-03 20:45:15 -06:00
parent 21ada15e08
commit 46df04dafb
2 changed files with 6 additions and 5 deletions

View File

@@ -568,6 +568,7 @@ fallback_get_hosts(krb5_context context, struct krb5_krbhst_data *kd,
"Realm %s needs immediate attention "
"see https://icann.org/namecollision",
kd->realm);
free(host);
freeaddrinfo(ai);
return KRB5_KDC_UNREACH;
}