mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -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
|
else
|
||||||
pw->node_name = strdup(node_name);
|
pw->node_name = strdup(node_name);
|
||||||
|
|
||||||
if (pw->node_name == NULL)
|
if (pw->node_name == NULL) {
|
||||||
return -errno;
|
err = -errno;
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
pw->target = PW_ID_ANY;
|
pw->target = PW_ID_ANY;
|
||||||
if (str != NULL)
|
if (str != NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue