Man who dismembered corpse to be freed from mental hospital