Mont. Code Ann. § 25-14-311
25-14-311 Discharge at instance of plaintiff
25-14-311 . Discharge at instance of plaintiff. The plaintiff in the action may at any time order the prisoner to be discharged, and the prisoner is not liable to imprisonment for the same cause of action.