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:

committed by
Nicolas Williams

parent
d769eced7b
commit
5ca056969a
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user