You shouldn't tell secrets like it's if they want to turn themselves in on their own free will. Yes, it's wrong that someone else is doing their time, but your friend dodged a bullet with getting caught. The person who was arrested probably beat it from insufficient evidence, but nonetheless your friend's trust in you to keep it in is more important than telling.