mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
MIGRATE: fix fd leak due to missing close on error.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user