No person who has been discharged upon a writ of habeas corpus shall be again imprisoned or restrained for the same cause, unless he or she is indicted or charged by information therefor or convicted thereof, or committed for want of bail, by some court of record having jurisdiction of the cause, or unless, after a discharge for defect of proof or for some material in the commitment in a criminal case, he or she shall be again arrested on sufficient proof, and committed by legal process, for the same offense.
R.I. Gen. Laws § 10-9-29