modules: loop_add_io with close=true owns the fd

We should not close the fd when loop_add_io with close=true fails
because the fd is already closed.
This commit is contained in:
Wim Taymans 2026-05-05 18:38:21 +02:00
parent eec372ba9d
commit 8907d0860b
6 changed files with 9 additions and 20 deletions

View file

@ -1079,7 +1079,6 @@ static int create_netjack2_socket(struct impl *impl)
if (impl->setup_socket == NULL) {
res = -errno;
pw_log_error("can't create setup source: %m");
close(fd);
goto out;
}