diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2010-08-27 13:38:46 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-09-08 16:47:18 +0200 |
commit | 61a527362234ac3352a91ac67c50c6f7cd248eb1 (patch) | |
tree | 6d3ed6390f61d7819c11b459d86d5dac76ca7f0c /tools/perf/util/probe-finder.c | |
parent | tracing: Do not allow llseek to set_ftrace_filter (diff) | |
download | linux-61a527362234ac3352a91ac67c50c6f7cd248eb1.tar.xz linux-61a527362234ac3352a91ac67c50c6f7cd248eb1.zip |
tracing/kprobe: Fix a memory leak in error case
Fix a memory leak which happens when a field name conflicts with others. In
error case, free_trace_probe() will free all arguments until nr_args, so this
increments nr_args the begining of the loop instead of the end.
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
LKML-Reference: <20100827113846.22882.12670.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-finder.c')
0 files changed, 0 insertions, 0 deletions