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

View File

@ -1807,6 +1807,7 @@ static void getRDB(void) {
} }
close(s); /* Close the file descriptor ASAP as fsync() may take time. */ close(s); /* Close the file descriptor ASAP as fsync() may take time. */
fsync(fd); fsync(fd);
close(fd);
fprintf(stderr,"Transfer finished with success.\n"); fprintf(stderr,"Transfer finished with success.\n");
exit(0); exit(0);
} }