"I believe that wills are binding so long as they don't require something be done that was illegal."
So, then, Lee couldn't have freed those slaves earlier than the five years stipulated in the will?
The will stipulated that the slaves be freed within 5 years, so he could have freed them at any time. Lee waited until just after 5 years after his death to free them