X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b7a8daef6070816e08438fd64b2b9a41571eb333..b67d234563e03ceb9325b39a78cca11bec28569d:/src/aof.c?ds=sidebyside diff --git a/src/aof.c b/src/aof.c index c92798c5..f8b92d2d 100644 --- a/src/aof.c +++ b/src/aof.c @@ -194,6 +194,7 @@ struct redisClient *createFakeClient(void) { * so that Redis will not try to send replies to this client. */ c->replstate = REDIS_REPL_WAIT_BGSAVE_START; c->reply = listCreate(); + c->watched_keys = listCreate(); listSetFreeMethod(c->reply,decrRefCount); listSetDupMethod(c->reply,dupClientReplyValue); initClientMultiState(c); @@ -203,6 +204,7 @@ struct redisClient *createFakeClient(void) { void freeFakeClient(struct redisClient *c) { sdsfree(c->querybuf); listRelease(c->reply); + listRelease(c->watched_keys); freeClientMultiState(c); zfree(c); }