perf trace: Drop thread refcount in trace__event_handler()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 20 Oct 2018 12:27:52 +0000 (09:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Oct 2018 15:37:52 +0000 (12:37 -0300)
commita937c6658b8e77e1f65cde2be9970811752121bb
tree9cc7a92239283dc883c9c1c0d6f320ba1925203a
parent4291bf5cb93918232f88a3a70d8f70a72fbb6ab0
perf trace: Drop thread refcount in trace__event_handler()

We must pair:

   thread = machine__findnew_thread();

with thread__put(thread). Fix it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: c4191e55b874 ("perf trace: Show comm and tid for tracepoint events")
Link: https://lkml.kernel.org/n/tip-dkxsb8cwg87rmkrzrbns1o4z@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c