mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
alsa: don't leak structure on error
This commit is contained in:
parent
f353042460
commit
ac54b7ace1
|
@ -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…
Reference in a new issue