Every person confined in jail on an execution issued on a judgment recovered in an action founded on a tort shall be discharged therefrom upon the conditions hereinafter specified.