mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
conf: fix memory leak on the error path in parse_args()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
56c11293e3
commit
ad5f255b47
1 changed files with 1 additions and 0 deletions
|
|
@ -5169,6 +5169,7 @@ static int parse_args(snd_config_t *subs, const char *str, snd_config_t *defs)
|
|||
err = snd_config_add(subs, sub);
|
||||
if (err < 0) {
|
||||
_err:
|
||||
snd_config_delete(sub);
|
||||
free(val);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue