| commit | 9cd86e37b7a10d1b5333dddd26eae853c32da27a | [log] [tgz] |
|---|---|---|
| author | Jerome Marchand <jmarchan@redhat.com> | Wed Jun 05 15:40:27 2024 +0200 |
| committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Wed Jul 17 22:15:12 2024 -0400 |
| tree | a0210f52def4e86548485e3acf25b21c9229225d | |
| parent | 6fd08d879d0a9f7b3c1c8f3609779626ad25c8a0 [diff] |
trace-cmd hist: Close tracecmd handle when trace_hist() exits early Call tracecmd_close() before returning if tracecmd_read_headers() fails. Fixes a RESOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/20240605134054.2626953-13-jmarchan@redhat.com Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>