mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Misc fixes
Fixes of spots found via valgrind - non-freed chunks after snd_config_get_ascii() - zero-fill records (to make valgrind happy) - compile warning fixes
This commit is contained in:
parent
4bb0721a83
commit
ea77e08cc6
6 changed files with 20 additions and 5 deletions
|
|
@ -550,9 +550,11 @@ int _snd_pcm_file_open(snd_pcm_t **pcmp, const char *name,
|
|||
}
|
||||
if (isdigit(*str) == 0) {
|
||||
SNDERR("The field perm must be a valid file permission");
|
||||
free(str);
|
||||
return -EINVAL;
|
||||
}
|
||||
perm = strtol(str, &endp, 8);
|
||||
free(str);
|
||||
continue;
|
||||
}
|
||||
SNDERR("Unknown field %s", id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue