in source/kms.c [2400:2416]
void aws_kms_generate_random_response_destroy(struct aws_kms_generate_random_response *res) {
if (res == NULL) {
return;
}
AWS_PRECONDITION(res);
AWS_PRECONDITION(aws_allocator_is_valid(res->allocator));
if (aws_byte_buf_is_valid(&res->plaintext)) {
aws_byte_buf_clean_up_secure(&res->plaintext);
}
if (aws_byte_buf_is_valid(&res->ciphertext_for_recipient)) {
aws_byte_buf_clean_up_secure(&res->ciphertext_for_recipient);
}
aws_mem_release(res->allocator, res);
}