commit | 67b3610542f5b9ca4c87d46b2a02173025837c43 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | Tue Nov 15 16:32:29 2016 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Tue Nov 15 16:32:29 2016 -0500 |
tree | f9c0eb93e325f9e1f8149b39d441b7c16d71dbdf | |
parent | 8cfd82f1c16287f56f4a57306d2c709c5df1b099 [diff] |
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>