trace-cmd: Unload plugins on tracecmd_close()

When the handle is freed, we need to unload the plugins, otherwise
we will keep loading them if an app closes and opens a new handle.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
4 files changed