summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2017-08-03 12:18:58 +0200
committerGitHub <noreply@github.com>2017-08-03 12:18:58 +0200
commit202c2ebec4d47d6f8cfbb6c91dd4486dd62aebf6 (patch)
treef2575a22e6dafb34cee958012015bd949045c375
parent34a79c353f15900f004057858f0d57a29d68b63c (diff)
parenta8c08b9b7668f784cfd24ecd2afb2fdd2ae65312 (diff)
downloadredis-202c2ebec4d47d6f8cfbb6c91dd4486dd62aebf6.tar.gz
Merge pull request #4191 from jybaek/unstable
Add missing fclose()
-rw-r--r--src/redis-cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 61068483f..705d917e9 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -1807,6 +1807,7 @@ static void getRDB(void) {
}
close(s); /* Close the file descriptor ASAP as fsync() may take time. */
fsync(fd);
+ close(fd);
fprintf(stderr,"Transfer finished with success.\n");
exit(0);
}