void aws_nitro_enclaves_rest_client_destroy()

in source/rest.c [244:256]


void aws_nitro_enclaves_rest_client_destroy(struct aws_nitro_enclaves_rest_client *rest_client) {
    AWS_PRECONDITION(rest_client);
    aws_http_connection_release(rest_client->connection);
    aws_tls_ctx_release(rest_client->tls_ctx);
    aws_mutex_clean_up(&rest_client->mutex);
    aws_condition_variable_clean_up(&rest_client->c_var);
    aws_string_destroy(rest_client->service);
    aws_string_destroy(rest_client->region);
    aws_string_destroy(rest_client->host_name);
    aws_credentials_release(rest_client->credentials);
    aws_credentials_provider_release(rest_client->credentials_provider);
    aws_mem_release(rest_client->allocator, rest_client);
}