If the person or anyone acting on the person's behalf demands that the person be released and the chief officer does not detain the person in conformity with chapter 6, part 4 or 5 of this title, the chief officer shall discharge the person.
T.C.A. § 33-6-307