Most airlines will transfer miles to a residuary beneficiary upon presentation of the death certificate, and Letters Probate (or Letters of Administration).
However, each airline sets its own policy on this. Some will transfer only to next of kin which can be defined very loosely or very narrowly. Some will not transfer at all.