A few quotes from the Rabbi on 'Customs of Israel'
in which he teaches of the custom to release vows [hatarat nedarim] on the 19th of Av out of concern that one be in a state of banishment from Heaven on Yom Kippur
It is the custom to release vows on Rosh Hashanna… Here, in the city of Safi, the custom has been to release vows on the 19th of Av, forty days before Yom Kippur, because it says in the holy Zohar that "Banishment or censure decreed by the Court of Heaven lasts forty days, and the prayers of whoever has been banished are not heard." The release of vows, therefore, is done forty days before Yom Kippur, after which time much care is to be taken not to do anything that deserves banishment.
Korban Mincha, p. 149, Nissim Ben Baruch Publishing, Kiryat Sefer, 1998