From: Ezra Peisach Date: Mon, 13 Oct 1997 14:56:53 +0000 (+0000) Subject: * client_init.c (kadm5_destroy): Free handle->lhandle field, call X-Git-Tag: krb5-1.1-beta1~1000 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3c3006564bf7304eae692eee1c745fceea7d12da;p=krb5.git * 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 --- 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);