void aws_nitro_enclaves_kms_client_config_destroy()

in source/kms.c [2466:2478]


void aws_nitro_enclaves_kms_client_config_destroy(struct aws_nitro_enclaves_kms_client_configuration *config) {
    if (config == NULL) {
        return;
    }

    AWS_PRECONDITION(aws_allocator_is_valid(config->allocator));

    if (config->credentials != NULL) {
        aws_credentials_release(config->credentials);
    }

    aws_mem_release(config->allocator, config);
}