summaryrefslogtreecommitdiffstats
path: root/tools/perf/bench
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-06-16 20:14:22 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-06-19 21:13:15 +0200
commitb094c99e8e284cff839400a3b61fda1fa53962fc (patch)
treee2883bfd95d4412a9e05b1418d348659d32aebf5 /tools/perf/bench
parentperf ui browser: Fix scrollbar refresh row index (diff)
downloadlinux-b094c99e8e284cff839400a3b61fda1fa53962fc.tar.xz
linux-b094c99e8e284cff839400a3b61fda1fa53962fc.zip
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/perf/bench')
-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;
}