An analytical solution to the diffusion of linearly distributed impurities in a solid with an evaporating surface has been derived. The diffusion profile in the slab is obtained in the form of an infinite series of exponential and error functions. From the solution, the fractional release of the impurities is determined as a function of time.