From: Davidlohr Bueso <davidl...@hp.com>

Explicitly free the thread array ('pth_tab').

Signed-off-by: Davidlohr Bueso <davidl...@hp.com>
Cc: Aswin Chandramouleeswaran <as...@hp.com>
Cc: Hitoshi Mitake <mit...@dcl.info.waseda.ac.jp>
Cc: Jiri Olsa <jo...@kernel.org>
Link: 
http://lkml.kernel.org/r/1402942467-10671-5-git-send-email-davidl...@hp.com
Signed-off-by: Arnaldo Carvalho de Melo <a...@redhat.com>
---
 tools/perf/bench/sched-messaging.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 }
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to