diff options
author | Davidlohr Bueso <[email protected]> | 2014-06-16 11:14:22 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-06-19 16:13:15 -0300 |
commit | b094c99e8e284cff839400a3b61fda1fa53962fc (patch) | |
tree | e2883bfd95d4412a9e05b1418d348659d32aebf5 | |
parent | 89632972e2c56356d1e227aac151cf4e7c2f30d6 (diff) |
perf bench sched-messaging: Plug memleak
Explicitly free the thread array ('pth_tab').
Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Aswin Chandramouleeswaran <[email protected]>
Cc: Hitoshi Mitake <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-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; } |