Roof flashing is designed to keep wind-driven rain and other moisture from penetrating the seams on a roof down to the decking below the shingles. It is important to fix the flashing as soon as possible to avoid costly damage.