mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-27 21:37:37 -04:00
protocol-native: handle allocation failures
This commit is contained in:
parent
ea25c3f2b1
commit
f8a76d9f00
1 changed files with 2 additions and 0 deletions
|
|
@ -1675,6 +1675,8 @@ static int create_servers(struct pw_protocol *this, struct pw_impl_core *core,
|
||||||
const char *sockets = args ? pw_properties_get(args, "sockets") : NULL;
|
const char *sockets = args ? pw_properties_get(args, "sockets") : NULL;
|
||||||
struct spa_json it[2];
|
struct spa_json it[2];
|
||||||
spa_autoptr(pw_properties) p = pw_properties_copy(props);
|
spa_autoptr(pw_properties) p = pw_properties_copy(props);
|
||||||
|
if (p == NULL)
|
||||||
|
return -errno;
|
||||||
|
|
||||||
if (sockets == NULL) {
|
if (sockets == NULL) {
|
||||||
struct socket_info info = {0};
|
struct socket_info info = {0};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue