Fix a memory leak in PCM hook plugin

This commit is contained in:
Takashi Iwai 2008-01-18 14:43:56 +01:00
parent 35d4f9b8d7
commit 1683a1b8bd

View file

@ -661,6 +661,7 @@ int _snd_pcm_hook_ctl_elems_install(snd_pcm_t *pcm, snd_config_t *conf)
snd_pcm_hook_ctl_elems_close, sctl);
if (err < 0)
goto _err;
snd_config_delete(pcm_conf);
return 0;
_err:
if (h_hw_params)