diff options
author | Jan-Erik Rediger <badboy@archlinux.us> | 2015-04-29 14:31:37 +0200 |
---|---|---|
committer | Jan-Erik Rediger <badboy@archlinux.us> | 2015-04-29 14:31:37 +0200 |
commit | b9f907fb4c1ce5280f26f61d611b9fcedcf6add4 (patch) | |
tree | 4e9ce6b54b4f242388472ab5aebf4e7232e77aed /async.c | |
parent | d8145d79ce715054980938c751067ebaa541573c (diff) | |
parent | 2fc39eb4c35ad6c66a1b832a81d1519dcf5fe856 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |