Gas evolution from a solid following de-trapping and diffusion during tempering