When a copper pipe corrodes and leaks or bursts ... First, shut off the main water supply valve and drain the damaged water line. If the leak isn't obvious, it's worth your time to mark it.