Close memory leak in the client kadmin library

kadm5_c_destroy was not freeing the kadm5_client_context, just its
contents.  Also free the context itself.

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
Russ Allbery
2011-12-22 13:23:14 -08:00
committed by Nicolas Williams
parent d769eced7b
commit 5ca056969a

View File

@@ -51,5 +51,6 @@ kadm5_c_destroy(void *server_handle)
krb5_auth_con_free(context->context, context->ac);
if(context->my_context)
krb5_free_context(context->context);
free(context);
return 0;
}