in source/kms.c [2132:2152]
void aws_kms_decrypt_response_destroy(struct aws_kms_decrypt_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->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);
}