Leaf carbon (leafc) is updated in several routines, from the fluxes:
biogeochem/CNCStateUpdate1Mod.F90
biogeochem/CNCStateUpdate2Mod.F90
biogeochem/CNCStateUpdate3Mod.F90
In general, look for places where leafc_patch(p) appears on the left hand side of an equation.