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
b9f907fb
Commit
b9f907fb
authored
Apr 29, 2015
by
Jan-Erik Rediger
Browse files
Merge pull request #324 from redis/fix-spontaneous-reply-leak
Fix memory leak in async spontaneous reply handling
parents
d8145d79
2fc39eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
b9f907fb
...
...
@@ -454,6 +454,7 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
if
(((
redisReply
*
)
reply
)
->
type
==
REDIS_REPLY_ERROR
)
{
c
->
err
=
REDIS_ERR_OTHER
;
snprintf
(
c
->
errstr
,
sizeof
(
c
->
errstr
),
"%s"
,((
redisReply
*
)
reply
)
->
str
);
c
->
reader
->
fn
->
freeObject
(
reply
);
__redisAsyncDisconnect
(
ac
);
return
;
}
...
...
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