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

Fixes a memory leak in binary writer. #257

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Conversation

cheqianh
Copy link
Contributor

While binary writer is freed, the underlying value_stream is not released which causes a memory leak issue.

My first reaction when I see the issue was if this is something should be released manually. After taking a look at the field and where it's initialized. It's a temporary stream used by the ion_binary_writer and need to be released when writer is freed.

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

@cheqianh cheqianh merged commit 61b83cb into amazon-ion:master Nov 19, 2021
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