From: Masami Hiramatsu Date: Fri, 27 Aug 2010 11:38:46 +0000 (+0900) Subject: tracing/kprobe: Fix a memory leak in error case X-Git-Tag: v2.6.36-rc4~16^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a527362234ac3352a91ac67c50c6f7cd248eb1;p=pandora-kernel.git 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 Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mathieu Desnoyers LKML-Reference: <20100827113846.22882.12670.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed