projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8963297
)
perf bench sched-messaging: Plug memleak
author
Davidlohr Bueso
<davidlohr@hp.com>
Mon, 16 Jun 2014 18:14:22 +0000
(11:14 -0700)
committer
Arnaldo 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
patch
|
blob
|
history
diff --git
a/tools/perf/bench/sched-messaging.c
b/tools/perf/bench/sched-messaging.c
index
cc1190a
..
fc4fe91
100644
(file)
--- 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;
}