The mayor or president may release any person imprisoned for violation of a municipal ordinance and shall report the release, together with the reasons for the release, to the corporate authorities at their first meeting after the release.