summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2015-04-29 14:31:37 +0200
committerJan-Erik Rediger <badboy@archlinux.us>2015-04-29 14:31:37 +0200
commitb9f907fb4c1ce5280f26f61d611b9fcedcf6add4 (patch)
tree4e9ce6b54b4f242388472ab5aebf4e7232e77aed /async.c
parentd8145d79ce715054980938c751067ebaa541573c (diff)
parent2fc39eb4c35ad6c66a1b832a81d1519dcf5fe856 (diff)
Merge pull request #324 from redis/fix-spontaneous-reply-leak
Fix memory leak in async spontaneous reply handling
Diffstat (limited to 'async.c')
-rw-r--r--async.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/async.c b/async.c
index 84480bc..28aa76f 100644
--- a/async.c
+++ b/async.c
@@ -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;
}