commit | a01d0ba2d810336870deb8fd4f5366fee45865fe | [log] [tgz] |
---|---|---|
author | Jerome Marchand <jmarchan@redhat.com> | Thu Jun 06 17:38:20 2024 +0200 |
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | Fri Jun 14 16:19:39 2024 -0400 |
tree | 2faf7ff9c75ad7fd38d7a5b8e61692a1a4c76158 | |
parent | efdf7f7fcb9a4e0a5ccefb805d78123332aa7a23 [diff] |
libtracefs: Don't leak socket file descriptor in open_vsock() Close the socket file descriptor if connect() fails. Fixes a RESSOURCE_LEAK error (CWE-772) Link: https://lore.kernel.org/linux-trace-devel/20240606153830.2666120-7-jmarchan@redhat.com Fixes: 5ea41283fa071 ("libtracefs: Add tracefs_find_cid_pid() API") Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>