Messages in this thread Patch in this message | | | From | Namhyung Kim <> | Subject | [PATCH 1/4] tools lib traceevent: Fix error path on process_array() | Date | Wed, 19 Sep 2012 15:58:41 +0900 |
| |
From: Namhyung Kim <namhyung.kim@lge.com>
free_token() under out_free should be called with 'token' and no need to set *tok to NULL since it's set already.
Signed-off-by: Namhyung Kim <namhyung@kernel.org> --- tools/lib/traceevent/event-parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index ee4fa1912542..11f76a59711f 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c @@ -1636,8 +1636,7 @@ process_array(struct event_format *event, struct print_arg *top, char **tok) return type; out_free: - free_token(*tok); - *tok = NULL; + free_token(token); free_arg(arg); return EVENT_ERROR; } -- 1.7.11.4
| |