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

Resolve memory leak in cronet_transport #8256

Merged
merged 3 commits into from
Oct 5, 2016

Conversation

muxi
Copy link
Member

@muxi muxi commented Sep 30, 2016

No description provided.

@@ -341,6 +341,11 @@ static void on_failed(cronet_bidirectional_stream *stream, int net_error) {
gpr_free(s->state.ws.write_buffer);
s->state.ws.write_buffer = NULL;
}
if (s->state.rs.read_buffer &&
Copy link
Contributor

Choose a reason for hiding this comment

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

please turn into a function or macro and use it everywhere.

@makdharma
Copy link
Contributor

@muxi - a function will be a better choice because of the debuggability and readability it affords.

@makdharma makdharma merged commit da865f1 into grpc:master Oct 5, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
@lock lock bot unassigned makdharma Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants