Remember, in Virginia it was illegal to give a slave his freedom. Thomas Jefferson tried to overturn that in the House of Burgesses.
In 1782, the Virginia legislature past law allowing a master to free a slave without requiring state permission to do so. In 1806 the Virginia legislature passed law requiring manumitted slaves leave the state within one year of their freedom. Jefferson could have met these requirements if he had desired to.