From: Li Zefan Date: Tue, 1 Sep 2009 05:31:38 +0000 (+0800) Subject: tracing/filters: Defer pred allocation, fix memory leak X-Git-Tag: v2.6.32-rc1~718^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c58b43218c1a04a0bcf338ea47406c759ac28e11;p=pandora-kernel.git tracing/filters: Defer pred allocation, fix memory leak The predicates of an event and their filter structure are allocated when we create an event filter for the first time. These objects must be created once but each time we come with a new filter, we overwrite such pre-existing allocation, if any. Thus, this patch checks if the filter has already been allocated before going ahead. Spotted-by: Frederic Weisbecker Signed-off-by: Li Zefan Cc: Steven Rostedt Cc: Tom Zanussi Cc: Masami Hiramatsu LKML-Reference: <4A9CB1BA.3060402@cn.fujitsu.com> Signed-off-by: Frederic Weisbecker --- Reading git-diff-tree failed