commit | 7fcd8d27ff95670ffb0478486d408162f5299e89 | [log] [tgz] |
---|---|---|
author | Jerome Marchand <jmarchan@redhat.com> | Thu Jun 06 17:38:21 2024 +0200 |
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Fri Jun 14 16:21:33 2024 -0400 |
tree | ed19c4831cd0a51e4f0522b46997eeece9fe9698 | |
parent | a01d0ba2d810336870deb8fd4f5366fee45865fe [diff] |
libtracefs: Prevent a memory leak in add_func_str() Free func_list if strdup() fails. Fixes a RESSOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/20240606153830.2666120-8-jmarchan@redhat.com Fixes: c1606fb72264a ("libtracefs: Implement tracefs_filter_functions()") Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>