Species of Prunus, like this peach, often have a flow of resin from pruning cuts which is called gummosis.
Jay W. Pscheidt, 2008.
See:
Cherry (Prunus spp.) - Gumming