mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
pcm_hooks: null check for h
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
bd0b008c0d
commit
69e0aaa569
1 changed files with 2 additions and 1 deletions
|
|
@ -457,6 +457,7 @@ static int snd_pcm_hook_add_conf(snd_pcm_t *pcm, snd_config_t *root, snd_config_
|
||||||
err = hook_add_dlobj(pcm, h);
|
err = hook_add_dlobj(pcm, h);
|
||||||
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
if(h)
|
||||||
snd_dlclose(h);
|
snd_dlclose(h);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue