mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: don't leak structure on error
This commit is contained in:
parent
f353042460
commit
ac54b7ace1
1 changed files with 4 additions and 2 deletions
|
|
@ -915,8 +915,10 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name,
|
|||
else
|
||||
pw->node_name = strdup(node_name);
|
||||
|
||||
if (pw->node_name == NULL)
|
||||
return -errno;
|
||||
if (pw->node_name == NULL) {
|
||||
err = -errno;
|
||||
goto error;
|
||||
}
|
||||
|
||||
pw->target = PW_ID_ANY;
|
||||
if (str != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue