mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
The Advanced Linux Sound Architecture (ALSA) - library
snd_device_name_hint() tries to free the allocated list at the error path via snd_device_name_free_hint(). But snd_device_name_free_hint() expects a list terminated by NULL while snd_device_name_hint() doesn't add it. Adding it may again result in an error and thus isn't guaranteed to work. Hence we can't add NULL at the error path. Instead, now the code always allocates one entry more, and zero-clears the newly allocated beforehand to guarantee the NULL termination. Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
|---|---|---|
| alsalisp | ||
| aserver | ||
| doc | ||
| include | ||
| m4 | ||
| modules | ||
| src | ||
| test | ||
| utils | ||
| .gitignore | ||
| acinclude.m4 | ||
| ChangeLog | ||
| configure.ac | ||
| COPYING | ||
| gitcompile | ||
| INSTALL | ||
| Makefile.am | ||
| MEMORY-LEAK | ||
| NOTES | ||
| TODO | ||