in source/rest.c [501:516]
void aws_nitro_enclaves_rest_response_destroy(struct aws_nitro_enclaves_rest_response *response) {
if (response == NULL) {
return;
}
AWS_PRECONDITION(aws_byte_buf_is_valid(&response->__data));
AWS_PRECONDITION(aws_http_message_is_response(response->response));
struct aws_input_stream *stream = aws_http_message_get_body_stream(response->response);
aws_http_message_release(response->response);
aws_byte_buf_clean_up_secure(&response->__data);
aws_input_stream_destroy(stream);
aws_mem_release(response->allocator, response);
}