mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
pcm direct plugins - fix memory leak (sconf must be deleted)
This commit is contained in:
parent
1300e70573
commit
10cca7c03b
3 changed files with 3 additions and 6 deletions
|
|
@ -1162,8 +1162,7 @@ int _snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name,
|
|||
|
||||
err = snd_pcm_dmix_open(pcmp, name, &dopen, ¶ms,
|
||||
root, sconf, stream, mode);
|
||||
if (err < 0)
|
||||
snd_config_delete(sconf);
|
||||
snd_config_delete(sconf);
|
||||
return err;
|
||||
}
|
||||
#ifndef DOC_HIDDEN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue