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
a8c08b9b
Commit
a8c08b9b
authored
Aug 03, 2017
by
jybaek
Browse files
Add missing fclose()
parent
34a79c35
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
a8c08b9b
...
@@ -1807,6 +1807,7 @@ static void getRDB(void) {
...
@@ -1807,6 +1807,7 @@ static void getRDB(void) {
}
}
close
(
s
);
/* Close the file descriptor ASAP as fsync() may take time. */
close
(
s
);
/* Close the file descriptor ASAP as fsync() may take time. */
fsync
(
fd
);
fsync
(
fd
);
close
(
fd
);
fprintf
(
stderr
,
"Transfer finished with success.
\n
"
);
fprintf
(
stderr
,
"Transfer finished with success.
\n
"
);
exit
(
0
);
exit
(
0
);
}
}
...
...
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