Amendment made, how long before ex can claim dependent?

I filed an amendment removing my claim to a dependent so my ex can claim him this year.   How long before my ex will be able to claim him and file his taxes without receiving an error from the IRS?