Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
918e24c8
Commit
918e24c8
authored
May 30, 2019
by
qi.yang
Browse files
redisReaderGetReply leak memory
parent
f5f855c9
Changes
1
Show whitespace changes
Inline
Side-by-side
read.c
View file @
918e24c8
...
...
@@ -590,8 +590,11 @@ int redisReaderGetReply(redisReader *r, void **reply) {
/* Emit a reply when there is one. */
if
(
r
->
ridx
==
-
1
)
{
if
(
reply
!=
NULL
)
if
(
reply
!=
NULL
)
{
*
reply
=
r
->
reply
;
}
else
if
(
r
->
reply
!=
NULL
&&
r
->
fn
&&
r
->
fn
->
freeObject
)
{
r
->
fn
->
freeObject
(
r
->
reply
);
}
r
->
reply
=
NULL
;
}
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