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
4aa2ecd9
Unverified
Commit
4aa2ecd9
authored
Jan 24, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jan 24, 2018
Browse files
Merge pull request #4269 from jianqingdu/unstable
fix not call va_end() when syncWrite() failed
parents
4bffeda8
498f65ff
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
4aa2ecd9
...
...
@@ -1330,6 +1330,7 @@ char *sendSynchronousCommand(int flags, int fd, ...) {
cmd
=
sdscat
(
cmd
,
arg
);
}
cmd
=
sdscatlen
(
cmd
,
"
\r\n
"
,
2
);
va_end
(
ap
);
/* Transfer command to the server. */
if
(
syncWrite
(
fd
,
cmd
,
sdslen
(
cmd
),
server
.
repl_syncio_timeout
*
1000
)
...
...
@@ -1340,7 +1341,6 @@ char *sendSynchronousCommand(int flags, int fd, ...) {
strerror
(
errno
));
}
sdsfree
(
cmd
);
va_end
(
ap
);
}
/* Read the reply from the server. */
...
...
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