summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-06-16 11:14:22 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-06-19 16:13:15 -0300
commitb094c99e8e284cff839400a3b61fda1fa53962fc (patch)
treee2883bfd95d4412a9e05b1418d348659d32aebf5 /tools
parent89632972e2c56356d1e227aac151cf4e7c2f30d6 (diff)
perf bench sched-messaging: Plug memleak
Explicitly free the thread array ('pth_tab'). Signed-off-by: Davidlohr Bueso <davidlohr@hp.com> Cc: Aswin Chandramouleeswaran <aswin@hp.com> Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/1402942467-10671-5-git-send-email-davidlohr@hp.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/bench/sched-messaging.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c
index cc1190a0849b..fc4fe91ee098 100644
--- a/tools/perf/bench/sched-messaging.c
+++ b/tools/perf/bench/sched-messaging.c
@@ -332,5 +332,7 @@ int bench_sched_messaging(int argc, const char **argv,
break;
}
+ free(pth_tab);
+
return 0;
}