awslabs / aws-c-io

This is a module for the AWS SDK for C. It handles all IO and TLS work for application protocols.
Apache License 2.0
105 stars 58 forks source link

Update secure_channel_tls_handler.c #651

Closed normanade closed 2 weeks ago

normanade commented 2 weeks ago

Fix memory leak.

Issue from aws-sdk-cpp if available: S3Client Uploading Leaks Memory on Windows caused by InitializeSecurityContext misuse

Description of changes: add free for InitializeSecurityContext

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

graebm commented 2 weeks ago

Thanks so much for this submission! I took these changes and made some more. I'll take this over in the other PR