From 3c3006564bf7304eae692eee1c745fceea7d12da Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 13 Oct 1997 14:56:53 +0000 Subject: [PATCH] * client_init.c (kadm5_destroy): Free handle->lhandle field, call kadm5_free_config_params and krb5_free_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10225 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/clnt/ChangeLog | 5 +++++ src/lib/kadm5/clnt/client_init.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/lib/kadm5/clnt/ChangeLog b/src/lib/kadm5/clnt/ChangeLog index eeaa2a121..e3d65e2dc 100644 --- a/src/lib/kadm5/clnt/ChangeLog +++ b/src/lib/kadm5/clnt/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 13 10:55:02 1997 Ezra Peisach + + * client_init.c (kadm5_destroy): Free handle->lhandle field, call + kadm5_free_config_params and krb5_free_context. + Tue Jul 1 02:34:46 1997 Tom Yu * client_principal.c, client_rpc.c: Add support for setv4key. diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index d6404465e..43859a494 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -220,11 +220,11 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, return KADM5_BAD_CLIENT_PARAMS; } - if (code = kadm5_get_config_params(handle->context, + if ((code = kadm5_get_config_params(handle->context, DEFAULT_PROFILE_PATH, "KRB5_CONFIG", params_in, - &handle->params)) { + &handle->params))) { krb5_free_context(handle->context); free(handle); return(code); @@ -530,6 +530,11 @@ kadm5_destroy(void *server_handle) AUTH_DESTROY(handle->clnt->cl_auth); if (handle->clnt) clnt_destroy(handle->clnt); + if (handle->lhandle) + free (handle->lhandle); + + kadm5_free_config_params(handle->context, &handle->params); + krb5_free_context(handle->context); handle->magic_number = 0; free(handle); -- 2.26.2