mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
tools lib traceevent: Fix error path on process_array()
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]>
This commit is contained in:
parent
bcbd004020
commit
1bce6e0fec
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue