提交 ae3aeca8 编写于 作者: A antirez

MIGRATE: fix fd leak due to missing close on error.

上级 5a8234d2
......@@ -158,6 +158,7 @@ void migrateCommand(redisClient *c) {
return;
}
if ((aeWait(fd,AE_WRITABLE,timeout*1000) & AE_WRITABLE) == 0) {
close(fd);
addReplySds(c,sdsnew("-IOERR error or timeout connecting to the client\r\n"));
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册