mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
module-rtp: fix fd leak in error case
This commit is contained in:
parent
1c18e8aa69
commit
167681104b
1 changed files with 1 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ static int make_socket(const struct sockaddr* sa, socklen_t salen, char *ifname)
|
|||
}
|
||||
return fd;
|
||||
error:
|
||||
close(fd);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue