[PATCH openEuler-5.10 34/53] livepatch/core: Fix livepatch/state leak on error path