perf db-export: Fix thread ref-counting
authorAdrian Hunter <[email protected]>
Fri, 29 May 2015 13:33:29 +0000 (16:33 +0300)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 29 May 2015 15:43:39 +0000 (12:43 -0300)
commit427cde3287f2c6349f308d0e22c9223f9ea05ef1
tree0bdbdbc55612ffda2b4a1702073760dc8a551a3f
parent60fb7742928dab3c6a0fec7f2d2cce26d9366a3c
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 <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/db-export.c