in source/kms.c [2227:2243]
void aws_kms_encrypt_response_destroy(struct aws_kms_encrypt_response *res) {
if (res == NULL) {
return;
}
AWS_PRECONDITION(res);
AWS_PRECONDITION(aws_allocator_is_valid(res->allocator));
if (aws_string_is_valid(res->key_id)) {
aws_string_destroy(res->key_id);
}
if (aws_byte_buf_is_valid(&res->ciphertext_blob)) {
aws_byte_buf_clean_up_secure(&res->ciphertext_blob);
}
aws_mem_release(res->allocator, res);
}