mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -04:00
fix some allocation failures
This commit is contained in:
parent
8cf1164eb6
commit
6539c2bf8c
2 changed files with 13 additions and 4 deletions
|
|
@ -48,6 +48,8 @@ static struct card *ensure_card(uint32_t index, bool ucm, bool ucm_split)
|
|||
return c;
|
||||
|
||||
c = calloc(1, sizeof(*c));
|
||||
if (c == NULL)
|
||||
return NULL;
|
||||
c->ref = 1;
|
||||
c->index = index;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue