+Mon Oct 13 10:55:02 1997 Ezra Peisach <epeisach@mit.edu>
+
+ * 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 <tlyu@mit.edu>
* client_principal.c, client_rpc.c: Add support for setv4key.
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);
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);