From 686a18854e36f67ed7151c26ee705f9bae993595 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 14 Jun 2003 20:15:45 +0000 Subject: [PATCH] various svn path=/trunk/boinc/; revision=1441 --- sched/file_upload_handler.C | 1 + 1 file changed, 1 insertion(+) diff --git a/sched/file_upload_handler.C b/sched/file_upload_handler.C index 3e9a1f7308..1cf16be724 100644 --- a/sched/file_upload_handler.C +++ b/sched/file_upload_handler.C @@ -150,6 +150,7 @@ int copy_socket_to_file(FILE* in, char* path, double offset, double nbytes) { } m = fwrite(buf, 1, n, out); if (m != n) { + fclose(out); return return_error(ERR_TRANSIENT, "can't fwrite file"); } bytes_left -= n;