summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--async.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/async.c b/async.c
index ae097df..d7feba3 100644
--- a/async.c
+++ b/async.c
@@ -535,6 +535,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
return REDIS_OK;
oom:
__redisSetError(&(ac->c), REDIS_ERR_OOM, "Out of memory");
+ __redisAsyncCopyError(ac);
return REDIS_ERR;
}