diff options
| author | Davidlohr Bueso <davidlohr@hp.com> | 2014-06-16 14:14:22 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-06-19 15:13:15 -0400 |
| commit | b094c99e8e284cff839400a3b61fda1fa53962fc (patch) | |
| tree | e2883bfd95d4412a9e05b1418d348659d32aebf5 /tools/perf | |
| parent | 89632972e2c56356d1e227aac151cf4e7c2f30d6 (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/perf')
| -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, | |||
| 332 | break; | 332 | break; |
| 333 | } | 333 | } |
| 334 | 334 | ||
| 335 | free(pth_tab); | ||
| 336 | |||
| 335 | return 0; | 337 | return 0; |
| 336 | } | 338 | } |
