[PATCH 5.4 287/388] perf metricgroup: Free metric_events on error