From a77e9e2334cf8c1a6d7bc8c9b9912c6e1d99037d Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Wed, 23 May 2012 11:36:50 +0900 Subject: [PATCH] --- yaml --- r: 309413 b: refs/heads/master c: b3511d0530c7a2b4fa64d1f5218c5f073ae7b543 h: refs/heads/master i: 309411: 85423012507b04a6c414f76c9552df4796e4c011 v: v3 --- [refs] | 2 +- trunk/tools/lib/traceevent/event-parse.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 06731a6d1cda..dbc346d3f32f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d1de10870909a27ce2ac380d0671feb308826491 +refs/heads/master: b3511d0530c7a2b4fa64d1f5218c5f073ae7b543 diff --git a/trunk/tools/lib/traceevent/event-parse.c b/trunk/tools/lib/traceevent/event-parse.c index 445a43ad42fd..355902795f0a 100644 --- a/trunk/tools/lib/traceevent/event-parse.c +++ b/trunk/tools/lib/traceevent/event-parse.c @@ -2300,17 +2300,18 @@ process_dynamic_array(struct event_format *event, struct print_arg *arg, char ** arg = alloc_arg(); type = process_arg(event, arg, &token); if (type == EVENT_ERROR) - goto out_free; + goto out_free_arg; if (!test_type_token(type, token, EVENT_OP, "]")) - goto out_free; + goto out_free_arg; free_token(token); type = read_token_item(tok); return type; + out_free_arg: + free_arg(arg); out_free: - free(arg); free_token(token); *tok = NULL; return EVENT_ERROR;