[PATCH openEuler-1.0-LTS 1/2] livepatch/core: Fix livepatch/state leak on error path