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

redisReaderGetReply leak memory #671

Merged
merged 1 commit into from
Aug 9, 2019
Merged

redisReaderGetReply leak memory #671

merged 1 commit into from
Aug 9, 2019

Conversation

movebean
Copy link
Contributor

I think when the parameter reply is NULL, then only set r->reply to NULL at the tail of function will lead to memory leak, so I add some code to call freeObject to free r->reply under some conditions of course.

read.c Show resolved Hide resolved
@mnunberg mnunberg merged commit 99cdec3 into redis:master Aug 9, 2019
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.

3 participants