diff options
author | Namhyung Kim <namhyung@kernel.org> | 2012-09-25 14:25:19 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-25 14:53:53 +0200 |
commit | f1b2256d66fe8d613b9afcc1c16079362f9fc05c (patch) | |
tree | e1d09be0668b8f42d7a15ba030692d853ce1aa36 /drivers | |
parent | perf test: Fix build failure (diff) | |
download | linux-f1b2256d66fe8d613b9afcc1c16079362f9fc05c.tar.xz linux-f1b2256d66fe8d613b9afcc1c16079362f9fc05c.zip |
tools lib traceevent: Fix error path on pevent_parse_event
If __pevent_parse_format() succeeded but add_event() failed, 'ret' didn't
have a proper error code. Set it to PEVENT_ERRNO__MEM_ALLOC_FAILED.
In addition, at that point 'event' also has fields and format
information and they all need to be freed. Call pevent_free_format() to
handle it.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1348575919-4954-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions