summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}