| commit | 590e45220531201e09c9a4292bded25d7c941ab8 | [log] [tgz] |
|---|---|---|
| author | Jerome Marchand <[email protected]> | Thu Jun 06 17:38:28 2024 +0200 |
| committer | Steven Rostedt (Google) <[email protected]> | Fri Jun 14 23:20:21 2024 -0400 |
| tree | 68c58521d5fefaef542e82a92f82af0d9231b690 | |
| parent | 0309a876ba3ac13f7a436f292a6bdc0927213a76 [diff] |
libtracefs: Close dir in the error path in tracefs_event_systems() In tracefs_event_systems, we don't close dir if add_list_string() fails. At this point, just breaking out of the loop fixes that. Fixes a RESSOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/[email protected] Fixes: 056a177e1d686 ("libtracefs: Restructure how string lists work") Signed-off-by: Jerome Marchand <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>