in source/kms.c [2363:2379]
void aws_kms_generate_random_request_destroy(struct aws_kms_generate_random_request *req) {
if (req == NULL) {
return;
}
AWS_PRECONDITION(req);
AWS_PRECONDITION(aws_allocator_is_valid(req->allocator));
if (aws_string_is_valid(req->custom_key_store_id)) {
aws_string_destroy(req->custom_key_store_id);
}
if (req->recipient != NULL) {
aws_recipient_destroy(req->recipient);
}
aws_mem_release(req->allocator, req);
}