tracing/filter: Free pred array on disabling of filter
When a filter is disabled, free the preds. Cc: Tom Zanussi <tzanussi@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
74e9e58c35
commit
f76690afd0
1 changed files with 4 additions and 0 deletions
|
@ -1388,6 +1388,10 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string)
|
||||||
|
|
||||||
if (!strcmp(strstrip(filter_string), "0")) {
|
if (!strcmp(strstrip(filter_string), "0")) {
|
||||||
filter_disable_preds(call);
|
filter_disable_preds(call);
|
||||||
|
reset_preds(call->filter);
|
||||||
|
/* Make sure the filter is not being used */
|
||||||
|
synchronize_sched();
|
||||||
|
__free_preds(call->filter);
|
||||||
remove_filter_string(call->filter);
|
remove_filter_string(call->filter);
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue