in source/kms.c [2524:2532]
void aws_nitro_enclaves_kms_client_destroy(struct aws_nitro_enclaves_kms_client *client) {
if (client == NULL) {
return;
}
aws_attestation_rsa_keypair_destroy(client->keypair);
aws_nitro_enclaves_rest_client_destroy(client->rest_client);
aws_mem_release(client->allocator, client);
}