]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix double free in perf test 21 (code-reading.c)
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 10 Apr 2014 09:02:54 +0000 (12:02 +0300)
committerJiri Olsa <jolsa@redhat.com>
Tue, 15 Apr 2014 11:57:14 +0000 (13:57 +0200)
commitf1ccd9da584a092978a758cf19307ed4677db4b8
treedb194596629f6517d02d37259990ffda1e4cfcba
parent2838dc8b690a7abbebae16b4fb2026c30e34eab5
perf tools: Fix double free in perf test 21 (code-reading.c)

perf_evlist__delete() deletes attached cpu and thread maps
but the test is still using them, so remove them from the
evlist before deleting it.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: http://lkml.kernel.org/r/53465E3E.8070201@intel.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/tests/code-reading.c