kdc: hprop propagate_database do not leak 'server'

Change-Id: I0b2b6343134603ecffb6cd827d0828463378cff4
This commit is contained in:
Jeffrey Altman
2022-01-23 22:25:43 -05:00
parent a3f4a0bf0b
commit d80a1b9556

View File

@@ -324,6 +324,7 @@ propagate_database (krb5_context context, int type,
if (ret) {
failed++;
krb5_warn(context, ret, "unable to obtain default or set realm");
krb5_free_principal(context, server);
close(fd);
continue;
}