commit | f34fb1f29a89196afe3ce793a6395e1687a88a66 | [log] [tgz] |
---|---|---|
author | Jerome Marchand <jmarchan@redhat.com> | Thu Jun 06 17:38:26 2024 +0200 |
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Fri Jun 14 23:05:34 2024 -0400 |
tree | 6a546ba8d41568366bf17372bc5cc1b1cb33f0d9 | |
parent | 48e906bceb8b4770bfcbaf481338c134658ce2c8 [diff] |
libtracefs: Prevent memory leak in tracefs_dynevent_get_all() Free events in the error path of tracefs_dynevent_get_all(). Fixes a RESSOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/20240606153830.2666120-13-jmarchan@redhat.com Fixes: b04f18b005c6b ("libtracefs: New APIs for dynamic events") Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>