Penal Code § 1457
CHAPTER 1. Proceedings in Misdemeanor and Infraction Cases
Upon payment of the fine, the officer must discharge the defendant, if he is not detained for any other legal cause, and pay over the fine to the court which rendered the judgment.