aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-06-24 18:51:46 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-24 18:51:46 -0400
commit98fb6aeeee5c97f6dae20e578c05a431dc251975 (patch)
tree8e69b583a820288121ac5ae0e7dd4972a34d31c3
parentc75ee1c37929098100c5b4d9e149c3f79aa6104f (diff)
trace-cmd: Reset plugin_function variables on unload
Seems that unloading the dynamic plugin and loading it again does not reset the static variables back to their original value. On unload, reset these variables back. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--plugin_function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin_function.c b/plugin_function.c
index 9ee0eaa..62e8072 100644
--- a/plugin_function.c
+++ b/plugin_function.c
@@ -140,4 +140,6 @@ void PEVENT_PLUGIN_UNLOADER(void)
140 } 140 }
141 141
142 free(fstack); 142 free(fstack);
143 fstack = NULL;
144 cpus = -1;
143} 145}