Skip to content

Commit

Permalink
tracing/filter: Free pred array on disabling of filter
Browse files Browse the repository at this point in the history
When a filter is disabled, free the preds.

Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Feb 8, 2011
1 parent 74e9e58 commit f76690a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f76690a

Please sign in to comment.