[openEuler-1.0-LTS 00/15] Fix the UAF when task fails.