usb: typec: ucsi: ccg: fix memory leak in do_flash