Skip to content
Commit 7ad1437d authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

perf/x86/intel: Plug memory leak in intel_pmu_init()

A recent commit introduced an extra merge_attr() call in the skylake
branch, which causes a memory leak.

Store the pointer to the extra allocated memory and free it at the end of
the function.

Fixes: a5df70c3

 ("perf/x86: Only show format attributes when supported")
Reported-by: default avatarTommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@linux.intel.com>
parent 2e364635
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment