I was able to locate the source of my flap malfunction. The main cable that runs from my flap lever to where the cable splits into two is secured to a fitting on bulkhead behind the pilot’s seat. The cable should have been safety wired to this fitting and was not. This allowed the cable to slip out of the fitting. I made sure the cable was securely seated into the fitting and then safety wired it in place. This particular malfunction will NOT happen again.