Closed
Description
The encrypt
and decrypt
helper functions in the top-level aws_encryption_sdk
module currently return the header object from the EncryptionStream
objects. To avoid any possibility of those objects not being released for garbage collection because of active reference, we should copy the header object and return the copy.