Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
99cdec37
Unverified
Commit
99cdec37
authored
Aug 09, 2019
by
Mark Nunberg
Committed by
GitHub
Aug 09, 2019
Browse files
Merge pull request #671 from movebean/master
redisReaderGetReply leak memory
parents
fbb83c4a
918e24c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
read.c
View file @
99cdec37
...
@@ -590,8 +590,11 @@ int redisReaderGetReply(redisReader *r, void **reply) {
...
@@ -590,8 +590,11 @@ int redisReaderGetReply(redisReader *r, void **reply) {
/* Emit a reply when there is one. */
/* Emit a reply when there is one. */
if
(
r
->
ridx
==
-
1
)
{
if
(
r
->
ridx
==
-
1
)
{
if
(
reply
!=
NULL
)
if
(
reply
!=
NULL
)
{
*
reply
=
r
->
reply
;
*
reply
=
r
->
reply
;
}
else
if
(
r
->
reply
!=
NULL
&&
r
->
fn
&&
r
->
fn
->
freeObject
)
{
r
->
fn
->
freeObject
(
r
->
reply
);
}
r
->
reply
=
NULL
;
r
->
reply
=
NULL
;
}
}
return
REDIS_OK
;
return
REDIS_OK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment