Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323878
b: refs/heads/master
c: 70d9304
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Sep 24, 2012
1 parent ea48eda commit 10b8d52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f8c49d2645e5028e48ba15ec72728be121eddf95
refs/heads/master: 70d9304475730a63dd8da884abc7c76ee4772cd2
12 changes: 8 additions & 4 deletions trunk/tools/lib/traceevent/event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ process_flags(struct event_format *event, struct print_arg *arg, char **tok)
type = process_op(event, field, &token);

if (test_type_token(type, token, EVENT_DELIM, ","))
goto out_free;
goto out_free_field;
free_token(token);

arg->flags.field = field;
Expand All @@ -2269,7 +2269,9 @@ process_flags(struct event_format *event, struct print_arg *arg, char **tok)
type = read_token_item(tok);
return type;

out_free:
out_free_field:
free_arg(field);
out_free:
free_token(token);
*tok = NULL;
return EVENT_ERROR;
Expand All @@ -2289,7 +2291,7 @@ process_symbols(struct event_format *event, struct print_arg *arg, char **tok)

type = process_arg(event, field, &token);
if (test_type_token(type, token, EVENT_DELIM, ","))
goto out_free;
goto out_free_field;

arg->symbol.field = field;

Expand All @@ -2301,7 +2303,9 @@ process_symbols(struct event_format *event, struct print_arg *arg, char **tok)
type = read_token_item(tok);
return type;

out_free:
out_free_field:
free_arg(field);
out_free:
free_token(token);
*tok = NULL;
return EVENT_ERROR;
Expand Down

0 comments on commit 10b8d52

Please sign in to comment.