Skip to content

Commit

Permalink
Merge pull request redis#4191 from jybaek/unstable
Browse files Browse the repository at this point in the history
Add missing fclose()
  • Loading branch information
antirez committed Aug 3, 2017
2 parents 34a79c3 + a8c08b9 commit 202c2eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 202c2eb

Please sign in to comment.