trace-cmd: Fix file pointer leak on error exit of tracecmd_find_tracing_dir()

If the strdup() fails to allocate, we exit tracecmd_find_tracing_dir()
without closing the file descriptor just opened.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed