mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fix a memory leak in PCM hook plugin
This commit is contained in:
parent
35d4f9b8d7
commit
1683a1b8bd
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue