Free file descriptors correctly when freeing counting bloom

free_counting_bloom() did not free file descriptors correctly.