Getty Images

Nick Moody won’t have to go to jail, but he did have to go to Santa Clara.

The former 49ers linebacker, avoided an arrest warrant by showing up to testify against former teammate Aldon Smith in Smith’s trial on DUI and leaving the scene of an accident charges. Moody was with Smith the day of the incident.

According to David Ovalle of the Miami Herald, a Miami-Dade judge quashed the arrest warrant which was issued last week when he failed to appear to testify. Moody hadn’t returned calls, texts or emails from prosecutors in either California or Florida (where he lives), and prosecutors said he gave “various explanations” for blowing off a judge’s orders.

Moody was in Los Angeles training, and didn’t realize there was a warrant until he read news accounts of it.

“Mr. Moody made an error in judgment in not showing up,” Miami-Dade prosecutor Christine Zahralban told Judge Charles Johnson in a motion that the warrant be removed.

Moody drove from L.A. to Santa Clara Saturday to testify. Smith’s trial will begin May 2. Aldon Smith has been signed by the Raiders but can’t play until at least November because of a suspension.

Moody spent some time with the Seahawks last year, but injured a hamstring and wasn’t re-signed. He’s also facing a four-game suspension if he does sign with a team.