This is a gross misunderstanding. Socrates was sentenced to death for "corrupting the youth" in a sham trial. Some friends of Socrates offered to smuggle him out of Athens and escape his death sentence, but Socrates argued against that, for various reasons.
There's no evidence that Socrates supported and promoted the death penalty in the abstract.