R.I. Gen. Laws § 12-8-5. Commitment or discharge of person arrested.