]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tools lib traceevent: Fix a possible memory leak
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 23 May 2012 02:36:47 +0000 (11:36 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 May 2012 14:32:10 +0000 (11:32 -0300)
commit57d34dc5568f6ac700ef7e5c67f2bd6a8c7c4659
tree72989e742058c212f39b184d94acbba223873a47
parent00b9da7219cd027a1c51c3ef576aadbbd9fe38fe
tools lib traceevent: Fix a possible memory leak

If event_read_fields failed in the middle, each member of
struct format_field should be freed also.

Cc: Borislav Petkov <bp@alien8.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337740619-27925-11-git-send-email-namhyung.kim@lge.com
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c