Skip to content

Fix some memory leak while converting protobuf to json #16

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kyeongy
Copy link

@kyeongy kyeongy commented Mar 26, 2020

Some memory leaks are fixed, which may happen if there is an error while
processing nested or repeated messages.

  • 'array' in protobuf2json_process_message() should be freed on error
  • protobuf2json_process_field() is designed to free 'json_value' on error

Some memory leaks are fixed, which may happen if there is an error while
processing nested or repeated messages.
* 'array' in protobuf2json_process_message() should be freed on error
* protobuf2json_process_field() is designed to free 'json_value' on error
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.

1 participant