trace-cmd listen: Free all memory used to set up a domain
The return manager of the function add_domain() is not used, and all the
data to setup the manager descripter is copied to allocated memory. The
original data passed in is not used. Free it, even if a manager is created.
The mgr variable can now be removed as we don't need to use it from the
caller of add_domain().
Thanks to valgrind for pointing out the extra memory.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 file changed