mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05: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;
|
return fd;
|
||||||
error:
|
error:
|
||||||
|
close(fd);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue