virtiofsd: fv_create_listen_socket error path socket leak
commit6fa249027f97e3080f3d9c0fab3f94f8f80828fe
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 31 Jan 2020 19:52:14 +0000 (31 19:52 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 10 Feb 2020 17:24:43 +0000 (10 17:24 +0000)
treef06301b467f7b3be89d9db2cb6accdff5f5281f9
parent988717b46b6424907618cb845ace9d69062703af
virtiofsd: fv_create_listen_socket error path socket leak

If we fail when bringing up the socket we can leak the listen_fd;
in practice the daemon will exit so it's not really a problem.

Fixes: Coverity CID 1413121
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
tools/virtiofsd/fuse_virtio.c