commit | dcfce16d22fbd8cbd0e4c8de1742e56d03b527a4 | [log] [tgz] |
---|---|---|
author | Jerome Marchand <jmarchan@redhat.com> | Wed Jun 05 15:40:19 2024 +0200 |
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Wed Jul 17 22:14:24 2024 -0400 |
tree | 59fd4bf68cb27ce3a03238a598c57200bd82d9db | |
parent | ddf5dc4ef083efa28791d56ba5c307bec679345c [diff] |
trace-cmd: Call dlclose() in the error path of load_plugin() The handle returned by dlopen() isn't closes if something else fails afterwards. Call dlclose in the error path to fix that. Fixes a RESOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/20240605134054.2626953-5-jmarchan@redhat.com Signed-off-by: Jerome Marchand <jmarchan@redhat.com> [ Fixed whitespace issues ] Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>