Ell flashing should be nailed every six inches on center. Not enough fasteners were used and the sealant has deteriorated. I suggest sealing the underside of the ell flashing and installing the correct number of fasteners as specified by code. On this Talbot’s Corner roof another layer of membrane should be installed to cover the ell-flashing flange and provide a more aesthetically pleasing transition area.