mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-10 23:50:21 -04:00
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:
parent
eec372ba9d
commit
8907d0860b
6 changed files with 9 additions and 20 deletions
|
|
@ -761,12 +761,10 @@ static struct server *create_server(struct impl *impl, const char *address)
|
|||
if (server->source == NULL) {
|
||||
res = -errno;
|
||||
pw_log_error("%p: can't create server source: %m", impl);
|
||||
goto error_close;
|
||||
goto error;
|
||||
}
|
||||
return server;
|
||||
|
||||
error_close:
|
||||
close(fd);
|
||||
error:
|
||||
server_free(server);
|
||||
errno = -res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue