Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ae3aeca8
Commit
ae3aeca8
authored
Nov 12, 2012
by
antirez
Browse files
MIGRATE: fix fd leak due to missing close on error.
parent
5a8234d2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/migrate.c
View file @
ae3aeca8
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment