Cal. Gov't Code § 846
Neither a public entity nor a public employee is liable for injury caused by the failure to make an arrest or by the failure to retain an arrested person in custody.