diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-09-03 10:55:39 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-09-03 10:55:39 -0400 |
commit | 5ee7a2ea560c069c40c450ddd42f89d856b1366f (patch) | |
tree | 16d62253dfd793e15a1ba5306ff36ec7066ea7ec /parse-events.c | |
parent | e892161f731e958980fa977e2d7980f3cf0819ce (diff) |
parse-events: Free token in dynamic_array parsing
The dynamic_array parsing left out a necessary free_token().
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'parse-events.c')
-rw-r--r-- | parse-events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-events.c b/parse-events.c index 1a3fd8d..b6abd51 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -2180,6 +2180,7 @@ process_dynamic_array(struct event_format *event, struct print_arg *arg, char ** | |||
2180 | if (read_expected(EVENT_DELIM, ")") < 0) | 2180 | if (read_expected(EVENT_DELIM, ")") < 0) |
2181 | goto out_free; | 2181 | goto out_free; |
2182 | 2182 | ||
2183 | free_token(token); | ||
2183 | type = read_token_item(&token); | 2184 | type = read_token_item(&token); |
2184 | *tok = token; | 2185 | *tok = token; |
2185 | if (type != EVENT_OP || strcmp(token, "[") != 0) | 2186 | if (type != EVENT_OP || strcmp(token, "[") != 0) |