OSDN Git Service
(root)
/
android-x86
/
external-alsa-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a558b71
)
alsactl: simple coverity fix
author
Jaroslav Kysela
<perex@perex.cz>
Tue, 12 Mar 2019 15:05:23 +0000
(16:05 +0100)
committer
Jaroslav Kysela
<perex@perex.cz>
Tue, 12 Mar 2019 15:05:48 +0000
(16:05 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/init_parse.c
patch
|
blob
|
history
diff --git
a/alsactl/init_parse.c
b/alsactl/init_parse.c
index
f39d80e
..
562e674
100644
(file)
--- a/
alsactl/init_parse.c
+++ b/
alsactl/init_parse.c
@@
-1675,8
+1675,10
@@
static int parse(struct space *space, const char *filename)
linenum = 0;
linesize = 128;
line = malloc(linesize);
- if (line == NULL)
+ if (line == NULL) {
+ file_unmap(buf, bufsize);
return -ENOMEM;
+ }
space->filename = filename;
while (!err && pos < bufsize && !space->quit) {
count = line_width(buf, bufsize, pos);