Add missing fclose()

This commit is contained in:
jybaek 2017-08-03 17:28:04 +09:00
parent 34a79c353f
commit a8c08b9b76

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