(kadm5_s_destroy): simplify

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5762 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-03-25 03:39:55 +00:00
parent 34f25c0700
commit dca38b20d1

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997 - 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -45,9 +45,11 @@ kadm5_s_destroy(void *server_handle)
{
kadm5_ret_t ret;
kadm5_server_context *context = server_handle;
ret = context->db->destroy(context->context, context->db);
krb5_context kcontext = context->context;
ret = context->db->destroy(kcontext, context->db);
if(context->my_context)
krb5_free_context(context->context);
krb5_free_context(kcontext);
return ret;
}