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

No need to call ShutdownProtobufLibrary #13

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

eguiraud
Copy link
Owner

@eguiraud eguiraud commented Oct 2, 2023

I had added it to make sure leak checkers would see no leaks, because of the comment at the bottom of
https://protobuf.dev/getting-started/cpptutorial/#writing-a-message. However, Valgrind says there are no leaks even
without it.

Note that the code removed was wrong anyways:
in from_file, the function was only called in
case of errors. Thanks Martin!

I had added it to make sure leak checkers would see
no leaks, because of the comment at the bottom of
https://protobuf.dev/getting-started/cpptutorial/#writing-a-message.
However, Valgrind says there are no leaks even
without it.

Note that the code removed was wrong anyways:
in from_file, the function was only called in
case of errors. Thanks Martin!
@eguiraud eguiraud merged commit 55c9859 into main Oct 2, 2023
3 checks passed
@eguiraud eguiraud deleted the fix-protobuf-shutdown branch October 2, 2023 16:20
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