提交 b3e3d0d7 编写于 作者: A antirez

removed a bug introduced with non blocking VM

上级 f11b8647
...@@ -1649,7 +1649,6 @@ static void freeClient(redisClient *c) { ...@@ -1649,7 +1649,6 @@ static void freeClient(redisClient *c) {
aeDeleteFileEvent(server.el,c->fd,AE_READABLE); aeDeleteFileEvent(server.el,c->fd,AE_READABLE);
aeDeleteFileEvent(server.el,c->fd,AE_WRITABLE); aeDeleteFileEvent(server.el,c->fd,AE_WRITABLE);
listRelease(c->reply); listRelease(c->reply);
listRelease(c->io_keys);
freeClientArgv(c); freeClientArgv(c);
close(c->fd); close(c->fd);
/* Remove from the list of clients */ /* Remove from the list of clients */
...@@ -1662,6 +1661,7 @@ static void freeClient(redisClient *c) { ...@@ -1662,6 +1661,7 @@ static void freeClient(redisClient *c) {
if (ln) listDelNode(server.io_clients,ln); if (ln) listDelNode(server.io_clients,ln);
listRelease(c->io_keys); listRelease(c->io_keys);
} }
listRelease(c->io_keys);
/* Other cleanup */ /* Other cleanup */
if (c->flags & REDIS_SLAVE) { if (c->flags & REDIS_SLAVE) {
if (c->replstate == REDIS_REPL_SEND_BULK && c->repldbfd != -1) if (c->replstate == REDIS_REPL_SEND_BULK && c->repldbfd != -1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册