summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kdc/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kdc/main.c b/src/kdc/main.c
index e2446cdd0..cc89fabe3 100644
--- a/src/kdc/main.c
+++ b/src/kdc/main.c
@@ -701,9 +701,7 @@ initialize_realms(krb5_context kcontext, int argc, char **argv)
host_based_srvcs = 0;
}
- /* aprof_init can return 0 with aprof == NULL */
- if (aprof)
- krb5_aprof_finish(aprof);
+ krb5_aprof_finish(aprof);
}
if (default_udp_ports == 0) {