소스 검색

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

svn: 2054
Bryan Drewery 21 년 전
부모
커밋
4fa103c9fe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;