perf bench sched-messaging: Plug memleak
authorDavidlohr Bueso <davidlohr@hp.com>
Mon, 16 Jun 2014 18:14:22 +0000 (11:14 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 19 Jun 2014 19:13:15 +0000 (16:13 -0300)
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>
tools/perf/bench/sched-messaging.c

index cc1190a0849be72d3abafd9089f997fe3ad24b3f..fc4fe91ee098fb6de568a01e43473f80d62ec1d7 100644 (file)
@@ -332,5 +332,7 @@ int bench_sched_messaging(int argc, const char **argv,
                break;
        }
 
+       free(pth_tab);
+
        return 0;
 }