Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak in aws_tls_connection_options_copy #475

Merged
merged 2 commits into from
Feb 9, 2022
Merged

Conversation

xiazhvera
Copy link
Contributor

Issue #, if available:
Memory leak in Connection function is reported at aws/aws-iot-device-sdk-cpp-v2#215
We tracked down the issue and find it is related to aws_tls_connection_options_copy.

Description of changes:
Release the tls option data before copy happens in aws_tls_connection_options_copy.

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

@xiazhvera xiazhvera changed the title [WIP] Fix memory leak in aws_tls_connection_options_copy Fix memory leak in aws_tls_connection_options_copy Feb 9, 2022
@xiazhvera xiazhvera merged commit 6e695d2 into main Feb 9, 2022
@xiazhvera xiazhvera deleted the tls_copy_leaks branch February 9, 2022 23:21
jmklix pushed a commit that referenced this pull request Apr 22, 2024
alfred2g pushed a commit that referenced this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants