功败垂成gōngbàichuíchéng
Meanings
1. to fail within sight of success (idiom); last-minute failure
2. to fall at the last hurdle
3. snatching defeat from the jaws of victory
Characters used