commit | 5e5b2a760b13aeecd72da9bda392d2d3510fc409 | [log] [tgz] |
---|---|---|
author | Jerome Marchand <jmarchan@redhat.com> | Thu Jun 06 17:38:24 2024 +0200 |
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Fri Jun 14 22:52:26 2024 -0400 |
tree | 723930eea3104da2d9499977f51c332fe281bfe4 | |
parent | 8f2593fbbad2a549b854645acde7b11f5e02a924 [diff] |
libtracefs: Prevent memory leak in tracefs_instance_create() Free the path of the instance directory in the error path. Fixes a RESSOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/20240606153830.2666120-11-jmarchan@redhat.com Fixes: ebbb8507de560 libtracefs: Combine allocate and create APIs into one Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>