free the block cache memory after using it (fix mem leak)