Tom Zanussi c269fc8c53 tracing: fix leak in event_format_read()
Impact: fix memory leak

If event_format_read() exits early due to nonzero ppos, the
previous kmalloc doesn't get freed - might as well do the
check before the kmalloc and avoid the problem.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237270859.8033.141.camel@charm-linux>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-03-17 08:38:23 +01:00
..
2009-02-08 10:00:26 -08:00
2009-02-18 15:37:54 -08:00
2008-10-16 11:21:30 -07:00
2009-02-13 09:44:22 +01:00
2009-02-11 18:24:08 +01:00
2008-07-28 14:37:38 +02:00
2009-02-22 20:05:19 +01:00
2007-07-16 09:05:50 -07:00
2009-01-06 15:59:27 -08:00
2008-12-10 08:01:54 -08:00
2009-02-21 14:17:17 -08:00
2009-01-14 18:09:02 +01:00
2009-01-08 08:31:02 -08:00
2009-02-10 00:41:54 +01:00
2009-01-08 08:31:12 -08:00
2008-09-02 19:21:40 -07:00
2009-01-06 11:07:15 +01:00
2008-02-06 10:41:02 -08:00
2008-10-16 11:21:47 -07:00