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 _ion_writer_add_annotation_helper memory accumulation #296

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

soospeter
Copy link

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

Copy link
Contributor

@tgregg tgregg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Although this is technically a behavioral change (before, the user could safely free the provided ION_STRING immediately after calling this function; now, that is unsafe), I'm okay with it as I think it's unlikely anyone would be doing that. It also follows the same pattern as ion_writer_write_field_name*.

One request: could you please add a comment to this API stating this requirement. See the comment on ion_writer_write_field_name, for example.

@tgregg tgregg merged commit a5127a3 into amazon-ion:master Aug 1, 2022
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