]> git.baikalelectronics.ru Git - kernel.git/commit
perf db-export: Fix thread ref-counting
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 29 May 2015 13:33:29 +0000 (16:33 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 29 May 2015 15:43:39 +0000 (12:43 -0300)
commit282eedc9f39000ad93eddd95053ca8cc825a30eb
tree0bdbdbc55612ffda2b4a1702073760dc8a551a3f
parentdd7c9268bdc6928562e6fdfb9466fe83076f6fce
perf db-export: Fix thread ref-counting

Thread ref-counting was not done for get_main_thread() meaning that
there was a thread__get() from machine__find_thread() that was not being
paired with thread__put(). Fix that.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1432906425-9911-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/db-export.c