Commit f76690af authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 74e9e58c
......@@ -1388,6 +1388,10 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string)
if (!strcmp(strstrip(filter_string), "0")) {
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);
goto out_unlock;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment