[PATCH openEuler-5.10 43/68] platform/x86: intel_pmc_core: fix memleak on registration failure