We show that free products of finitely generated and residually p-finite nilpotent groups, amalgamating p-closed central subgroups are residually p-finite. As a consequence, we are able to show that generalized free products of residually p-finite abelian groups are residually p-finite if the amalgamated subgroup is closed in the prop topology on each of the factors.