]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Fix hists_evsel to release hists
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 9 Dec 2015 02:11:29 +0000 (11:11 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Dec 2015 16:41:59 +0000 (13:41 -0300)
commit710f41d92b0384b010652ea8b7be9ba037d560a4
tree68df3f39d01a6c06299d966ae1f815f52dfac584
parentb4ab1a367841ebf09311004e92a2ee7b001c3dfd
perf hists: Fix hists_evsel to release hists

Since hists__init doesn't set the destructor of hists_evsel (which is an
extended evsel structure), when hists_evsel is released, the extended
part of the hists_evsel is not deleted (note that the hists_evsel object
itself is freed).

This fixes it to add a destructor for hists__evsel and to set it up.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20151209021129.10245.28710.stgit@localhost.localdomain
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c