mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-09 23:50:15 -04:00
avb: check some allocation errors
This commit is contained in:
parent
32bb568225
commit
be6bfba8eb
2 changed files with 4 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ struct avb_mmrp_attribute *avb_mmrp_attribute_new(struct avb_mmrp *m,
|
|||
struct attr *a;
|
||||
|
||||
attr = avb_mrp_attribute_new(mmrp->server->mrp, sizeof(struct attr));
|
||||
if (attr == NULL)
|
||||
return NULL;
|
||||
|
||||
a = attr->user_data;
|
||||
a->attr.mrp = attr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue