mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
alsa-lib: conf - fix possible use-after-free in get_char_skip_comments
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e29413a220
commit
13e31fb1ec
1 changed files with 2 additions and 1 deletions
|
|
@ -814,11 +814,12 @@ static int get_char_skip_comments(input_t *input)
|
||||||
closedir(dirp);
|
closedir(dirp);
|
||||||
|
|
||||||
err = add_include_path(input->current, str);
|
err = add_include_path(input->current, str);
|
||||||
free(str);
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
SNDERR("Cannot add search dir %s", str);
|
SNDERR("Cannot add search dir %s", str);
|
||||||
|
free(str);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
free(str);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue