The old law also provided for a release of slaves every sabbath year (seventh year) and at the year of Jubilee (Every 50 years) and even provided a provision for those slaves that did not wish to leave their masters.
This law was for Hebrew slaves. Slaves purchased from the nations around them were not covered by these provisions.