[PATCH 6.0 279/314] perf/x86/amd/uncore: Fix memory leak for events array