Merge pull request #4191 from jybaek/unstable

Add missing fclose()
This commit is contained in:
Salvatore Sanfilippo 2017-08-03 12:18:58 +02:00 committed by GitHub
commit 202c2ebec4
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}