spa: alsa: acp: free device name in add_pro_profile

This commit is contained in:
Julian Bouzas 2021-07-08 14:34:09 -04:00 committed by Wim Taymans
parent e504ff8605
commit 7bf50fd8ed

View file

@ -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);