[PATCH openEuler-1.0-LTS 05/49] perf: Fix possible memleak in pmu_dev_alloc()