The name of the righteous is used in blessings, but the name of the wicked will rot.
NMVThe memory of the just [is] Blessed (Favored by God; happy; prosperous): but the name of the wicked shall rot.
OJBThe memory of the tzaddik is as bracha, but the shem resha'im shall rot.
T4TAfter righteous people die, other people are blessed as they remember what those people did before they died; but we will soon forget wicked people [MTY] after they die.