projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcbd004
)
tools lib traceevent: Fix error path on process_array()
author
Namhyung Kim
<
[email protected]
>
Wed, 19 Sep 2012 06:58:41 +0000
(15:58 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 24 Sep 2012 15:00:15 +0000
(12:00 -0300)
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 <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/lib/traceevent/event-parse.c
patch
|
blob
|
history
diff --git
a/tools/lib/traceevent/event-parse.c
b/tools/lib/traceevent/event-parse.c
index 77ebeb8266f4b429394d881f371c69e2399348fd..6270ee2e98308cf0f8e786bd75d8beb842445dc4 100644
(file)
--- a/
tools/lib/traceevent/event-parse.c
+++ b/
tools/lib/traceevent/event-parse.c
@@
-1595,8
+1595,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;
}