Skip to content

tools lib traceevent: Small fixes on error handling path

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tools lib traceevent: Fix error path on process_array()tools/lib/traceevent/event-parse.c+1 -21 reply
2/4tools lib traceevent: Make sure that arg->op.right is set properlytools/lib/traceevent/event-parse.c+3 -01 reply
3/4tools lib traceevent: Free field if an error occurs on process_fieldstools/lib/traceevent/event-parse.c+7 -51 reply
4/4tools lib traceevent: Free field if an error occurs on process_flags/symbolstools/lib/traceevent/event-parse.c+8 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] tools lib traceevent: Small fixes on error handling path

Hi,

During a review on Arnaldo's libtraceevent cleanup patches, I've found some possible memory leaks and a dangling pointer problem. Please take a look at them too.

Thanks,
Namhyung

Namhyung Kim (4):
tools lib traceevent: Fix error path on process_array()
tools lib traceevent: Make sure that arg->op.right is set properly tools lib traceevent: Free field if an error occurs on process_fields tools lib traceevent: Free field if an error occurs on process_flags/symbols

 tools/lib/traceevent/event-parse.c | 30 +++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.11.4