util: fix possible fd leaks in os_socket_listen_abstract
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Fri, 24 Jul 2020 15:51:25 +0000 (17:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 10:41:00 +0000 (10:41 +0000)
commiteac0ba7fc193cceccd953bc4726ceef750b18085
tree1bfaf47d7168ff5a22abd081612524eeb6fa2f6a
parent62bfc700f74971db970748acf8b832dbee4c2805
util: fix possible fd leaks in os_socket_listen_abstract

Found by Coverity.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Fixes: ef5266ebd50 ("util/os_socket: Add socket related functions.")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6067>
src/util/os_socket.c