How does a writ of habeas corpus safeguard individual freedom?
A
by preventing arrest and detentionB
by preventing detention for a crime without evidenceC
by providing a defense for committing a crimeD
by providing a way to avoid sentencing at trial