Message ID | 20230324200924.287521-2-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | a4b1ba5f874078f3a54ede67edd56f2b26ae079b |
Headers | show |
Series | libtraceevent: Fix double free in process_sizeof() | expand |
diff --git a/src/event-parse.c b/src/event-parse.c index e655087dad60..2584b3605136 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -3591,8 +3591,9 @@ process_sizeof(struct tep_event *event, struct tep_print_arg *arg, char **tok) } if (!ok) { + /* The token contains the last item before the parenthesis */ free_token(token); - type = read_token_item(event->tep, tok); + type = read_token_item(event->tep, &token); } if (test_type_token(type, token, TEP_EVENT_DELIM, ")")) goto error;