The Virginian
The Price of the Hanging (9x9)
:
After Colonel MacKenzie is seriously injured in an accident, Tate brings him into the nearest town looking for a doctor. He finds that the only doctor in town is in jail, scheduled to be hanged the next morning. Though Tate finally persuades the sentencing judge to let the doctor out under guard to treat the colonel, when Tate investigates he learns that the judge may have been motivated more by a desire for vengeance than for justice.