diff options
Diffstat (limited to 'tools/lib/traceevent/plugin_function.c')
-rw-r--r-- | tools/lib/traceevent/plugin_function.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/traceevent/plugin_function.c b/tools/lib/traceevent/plugin_function.c index 39461485f9a7..80ba4ff1fe84 100644 --- a/tools/lib/traceevent/plugin_function.c +++ b/tools/lib/traceevent/plugin_function.c | |||
@@ -148,6 +148,9 @@ void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) | |||
148 | { | 148 | { |
149 | int i, x; | 149 | int i, x; |
150 | 150 | ||
151 | pevent_unregister_event_handler(pevent, -1, "ftrace", "function", | ||
152 | function_handler, NULL); | ||
153 | |||
151 | for (i = 0; i <= cpus; i++) { | 154 | for (i = 0; i <= cpus; i++) { |
152 | for (x = 0; x < fstack[i].size && fstack[i].stack[x]; x++) | 155 | for (x = 0; x < fstack[i].size && fstack[i].stack[x]; x++) |
153 | free(fstack[i].stack[x]); | 156 | free(fstack[i].stack[x]); |