[PATCH] Fixed potential leak of temp pool.