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

PS-941 Free the allocated memory #52

Merged
merged 1 commit into from
May 4, 2020
Merged

PS-941 Free the allocated memory #52

merged 1 commit into from
May 4, 2020

Conversation

codingrhythm
Copy link
Member

@codingrhythm codingrhythm commented May 4, 2020

The generated code for passing protobuf message from c++ to objective-C contains memory leaks. The allocated memory malloc is not released after it’s used.

A free() needs to be used before return.

This fix has been verified working in the iAuditor using the Instrument tool to profile the app.

@codingrhythm codingrhythm merged commit ba7ecf9 into master May 4, 2020
@codingrhythm codingrhythm deleted the PS-941 branch May 4, 2020 21:55
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.

None yet

2 participants