https://github.com/torvalds/linux
Revision 7ad1437d6ace0e450a6c1167720608ad660b191d authored by Thomas Gleixner on 27 December 2017, 18:45:31 UTC, committed by Thomas Gleixner on 27 December 2017, 19:23:59 UTC
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>
1 parent 2e36463
History
Tip revision: 7ad1437d6ace0e450a6c1167720608ad660b191d authored by Thomas Gleixner on 27 December 2017, 18:45:31 UTC
perf/x86/intel: Plug memory leak in intel_pmu_init()
Tip revision: 7ad1437

back to top