added free(*bc) (tiny change)