diff options
author | Davidlohr Bueso <davidlohr@hp.com> | 2014-06-16 22:14:22 +0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-06-19 23:13:15 +0400 |
commit | b094c99e8e284cff839400a3b61fda1fa53962fc (patch) | |
tree | e2883bfd95d4412a9e05b1418d348659d32aebf5 /tools/perf/bench | |
parent | 89632972e2c56356d1e227aac151cf4e7c2f30d6 (diff) | |
download | linux-b094c99e8e284cff839400a3b61fda1fa53962fc.tar.xz |
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.c | 2 |
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; } |