diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2011-02-22 19:42:12 -0500 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-22 19:42:12 -0500 |
| commit | e9fa08f59877a98b65cc2c26129c81778de31279 (patch) | |
| tree | ef137a97c12d51b59c0d530c606d716fc3179c17 | |
| parent | cbe4085d032839a264465e018050cdc0e5c44970 (diff) | |
parse-events: Free token in processing function handler
A missing free_token() in the function handler of pevent was
causing a memory leak.
Thanks again to valgrind.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| -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 d831db7..3d59d92 100644 --- a/parse-events.c +++ b/parse-events.c | |||
| @@ -2371,6 +2371,7 @@ process_func_handler(struct event_format *event, struct pevent_function_handler | |||
| 2371 | 2371 | ||
| 2372 | *next_arg = farg; | 2372 | *next_arg = farg; |
| 2373 | next_arg = &(farg->next); | 2373 | next_arg = &(farg->next); |
| 2374 | free_token(token); | ||
| 2374 | } | 2375 | } |
| 2375 | 2376 | ||
| 2376 | type = read_token(&token); | 2377 | type = read_token(&token); |
