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
918e24c8
Commit
918e24c8
authored
May 30, 2019
by
qi.yang
Browse files
redisReaderGetReply leak memory
parent
f5f855c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
read.c
View file @
918e24c8
...
@@ -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