With your friend's death, your involvement in the matter ended. Leave it be.
You should take comfort in knowing that your friend had enough trust in and respect for you that he confided in you something very personal and sensitive.
If he wanted the matter known to anyone else, he would have told them. He had plenty of time to do this.
Don't violate the trust he placed in you, and do not burden your conscience further by thinking you adopted his responsibility/accountability for the matter. You fulfilled whatever obligation you had simply by listening to your friend and being there when he needed someone. That is done now. Anything more you make of it is self-conjured and unhealthy, and further action will not be productive.
_________________________
The ultimate result of shielding men from the effects of folly is to fill the world with fools.
-- Herbert Spencer, English Philosopher (1820-1903)