Commit a8c08b9b authored by jybaek's avatar jybaek
Browse files

Add missing fclose()

parent 34a79c35
...@@ -1807,6 +1807,7 @@ static void getRDB(void) { ...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment