mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: alsa: acp: free device name in add_pro_profile
This commit is contained in:
parent
e504ff8605
commit
7bf50fd8ed
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue