Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323877
b: refs/heads/master
c: f8c49d2
h: refs/heads/master
i:
  323875: 13eccf5
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Sep 24, 2012
1 parent 227f6b8 commit ea48eda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 41e51a289b3ca83e08395213f4488c9c7c6b2e29
refs/heads/master: f8c49d2645e5028e48ba15ec72728be121eddf95
12 changes: 7 additions & 5 deletions trunk/tools/lib/traceevent/event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,25 +2186,25 @@ process_fields(struct event_format *event, struct print_flag_sym **list, char **

value = arg_eval(arg);
if (value == NULL)
goto out_free;
goto out_free_field;
field->value = strdup(value);
if (field->value == NULL)
goto out_free;
goto out_free_field;

free_arg(arg);
arg = alloc_arg();

free_token(token);
type = process_arg(event, arg, &token);
if (test_type_token(type, token, EVENT_OP, "}"))
goto out_free;
goto out_free_field;

value = arg_eval(arg);
if (value == NULL)
goto out_free;
goto out_free_field;
field->str = strdup(value);
if (field->str == NULL)
goto out_free;
goto out_free_field;
free_arg(arg);
arg = NULL;

Expand All @@ -2218,6 +2218,8 @@ process_fields(struct event_format *event, struct print_flag_sym **list, char **
*tok = token;
return type;

out_free_field:
free_flag_sym(field);
out_free:
free_arg(arg);
free_token(token);
Expand Down

0 comments on commit ea48eda

Please sign in to comment.