aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/hiredis
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hiredis')
-rw-r--r--contrib/hiredis/async.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/hiredis/async.c b/contrib/hiredis/async.c
index a508036e6..851676263 100644
--- a/contrib/hiredis/async.c
+++ b/contrib/hiredis/async.c
@@ -483,6 +483,11 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
* abort with an error, but simply ignore it because the client
* doesn't know what the server will spit out over the wire. */
c->reader->fn->freeObject(reply);
+ /* Proceed with free'ing when redisAsyncFree() was called. */
+ if (c->flags & REDIS_FREEING) {
+ __redisAsyncFree(ac);
+ return;
+ }
}
}