mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
alsactl: init - parse() - fix possible double free
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e55534d8a5
commit
c5ecfd9789
1 changed files with 1 additions and 0 deletions
|
@ -1701,6 +1701,7 @@ static int parse(struct space *space, const char *filename)
|
|||
|
||||
if (count > linesize - 1) {
|
||||
free(line);
|
||||
line = NULL;
|
||||
linesize = (count + 127 + 1) & ~127;
|
||||
if (linesize > 2048) {
|
||||
error("file %s, line %i too long", filename, linenum);
|
||||
|
|
Loading…
Reference in a new issue