The innocent people were of course released.

Literal

Not-guilty people [topic-は] of-course were-released.

もちろん ('of course') is a common adverb. 放免される is the passive of 放免する, a formal legal verb meaning 'to release (from custody/charges).'