Word Definition - 功败垂成

gōng bài chuí chéng to fail within sight of success (idiom); last-minute failure; to fall at the last hurdle; snatching defeat from the jaws of victory