If no legal cause is shown for such imprisonment or restraint, or for the continuation thereof, such officer shall discharge such party from the custody or restraint under which he is held. History: Laws 1884, ch. 1, § 15; C.L. 1884, § 2026; C.L. 1897, § 2795; Code 1915, § 2603; C.S. 1929, § 63-115; 1941 Comp., § 25-1115; 1953 Comp., § 22-11-15.