mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05: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,7 +1162,6 @@ 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);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -898,7 +898,6 @@ int _snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name,
|
|||
|
||||
err = snd_pcm_dshare_open(pcmp, name, &dopen, ¶ms,
|
||||
root, sconf, stream, mode);
|
||||
if (err < 0)
|
||||
snd_config_delete(sconf);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -770,7 +770,6 @@ int _snd_pcm_dsnoop_open(snd_pcm_t **pcmp, const char *name,
|
|||
|
||||
err = snd_pcm_dsnoop_open(pcmp, name, &dopen, ¶ms,
|
||||
root, sconf, stream, mode);
|
||||
if (err < 0)
|
||||
snd_config_delete(sconf);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue