Explorar o código

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

svn: 2054
Bryan Drewery %!s(int64=21) %!d(string=hai) anos
pai
achega
4fa103c9fe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;