mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-07 06:08:04 +02: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;
|
||||
struct spa_json it[2];
|
||||
spa_autoptr(pw_properties) p = pw_properties_copy(props);
|
||||
if (p == NULL)
|
||||
return -errno;
|
||||
|
||||
if (sockets == NULL) {
|
||||
struct socket_info info = {0};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue