Browse Source

* Wasn't closing the file descriptor for the new file when writing the checksum until after moving it?

svn: 2054
Bryan Drewery 21 years ago
parent
commit
4fa103c9fe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/binary.c

+ 1 - 0
src/binary.c

@@ -176,6 +176,7 @@ bin_checksum(const char *fname, int todo)
     }
 
     fclose(f);
+    fclose(newbin->f);
 
     if (size != newpos) {
       delete newbin;