commit | 7ad1437d6ace0e450a6c1167720608ad660b191d | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Wed Dec 27 19:45:31 2017 +0100 |
committer | Thomas Gleixner <tglx@linutronix.de> | Wed Dec 27 20:23:59 2017 +0100 |
tree | b518b1fd266c0f025683e91178ecd42e283b55bc | |
parent | 2e36463525b8b63b32be0721d0268e336d314b38 [diff] |
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: a5df70c354c2 ("perf/x86: Only show format attributes when supported") Reported-by: Tommi Rantala <tommi.t.rantala@nokia.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andi Kleen <ak@linux.intel.com>