From: Davidlohr Bueso Date: Mon, 16 Jun 2014 18:14:22 +0000 (-0700) Subject: perf bench sched-messaging: Plug memleak X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b094c99e8e284cff839400a3b61fda1fa53962fc;p=openwrt%2Fstaging%2Fblogic.git perf bench sched-messaging: Plug memleak Explicitly free the thread array ('pth_tab'). Signed-off-by: Davidlohr Bueso Cc: Aswin Chandramouleeswaran Cc: Hitoshi Mitake Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1402942467-10671-5-git-send-email-davidlohr@hp.com Signed-off-by: Arnaldo Carvalho de Melo --- 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; }