Erectile dysfunction is the inability to develop or maintain an erection hard enough to have penetrative sex. It has nothing to do with leaking urine, though the two sometimes happen together after prostatectomy.