c4377112dad6b04c3129f512e2420a2fc3bcc6da
hiram
  Tue Jun 14 14:05:03 2011 -0700
fixed file handle leak in bbiFileCheckSigs()
diff --git src/lib/bbiRead.c src/lib/bbiRead.c
index 1f2d3f7..85079df 100644
--- src/lib/bbiRead.c
+++ src/lib/bbiRead.c
@@ -46,30 +46,31 @@
 
 // look for signature at the beginning of the file
 mustReadFd(fd, &magic, sizeof(magic));
 
 if (magic != sig)
     {
     magic = byteSwap32(magic);
     isSwapped = TRUE;
     if (magic != sig)
         return FALSE;
     }
 
 // look for signature at the end of the file
 mustLseek(fd, -sizeof(magic), SEEK_END);
 mustReadFd(fd, &magic, sizeof(magic));
+mustCloseFd(&fd);
 
 if (isSwapped)
     {
     magic = byteSwap32(magic);
     if (magic != sig)
         return FALSE;
     }
 else
     {
     if (magic != sig)
         return FALSE;
     }
 
 return TRUE;
 }