[PATCH 6.5 073/285] perf parse-events: Separate ENOMEM memory handling