mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-26 14:13:19 +00:00
spa: alsa: acp: free device name in add_pro_profile
This commit is contained in:
parent
e504ff8605
commit
7bf50fd8ed
@ -318,8 +318,10 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
|
||||
if ((err = snd_ctl_open(&ctl_hndl, device, 0)) < 0) {
|
||||
pa_log_error("can't open control for card %s: %s",
|
||||
device, snd_strerror(err));
|
||||
free(device);
|
||||
return err;
|
||||
}
|
||||
free(device);
|
||||
|
||||
snd_pcm_info_alloca(&pcminfo);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user