Control method of leaching of metals from the pulp