dodgy repairs

Whilst on a Full Building Survey in Fulham London,  we noticed this poor attempt of general roof maintenance. The problem is that the lead flashing on the chimney is defective and water is getting in, instead of getting the lead flashing replaced, they have opted to spray expanding foam in the gap in order to try to stop the water ingress. From the photo you can see that this obviously hasn’t worked!