params_free functions don't work
31 Jul
2023
31 Jul
'23
11:25 p.m.
alsa-project/alsa-lib issue #341 was opened from imyxh:
The following code segfaults on the call to `snd_pcm_hw_params_free` on my machine:
```c #include <alsa/asoundlib.h> void main() { snd_pcm_hw_params_t *params; snd_pcm_hw_params_alloca(¶ms); snd_pcm_hw_params_free(params); } ```
The same goes for `s/hw/sw/g`. Am I doing something wrong? In more complex examples it seems to fail with munmap_chunk complaining about an invalid pointer, or free complaining about an invalid size.
How are the `*_params_free` functions meant to be used?
Issue URL : https://github.com/alsa-project/alsa-lib/issues/341 Repository URL: https://github.com/alsa-project/alsa-lib
510
Age (days ago)
510
Last active (days ago)
0 comments
1 participants
participants (1)
-
GitHub issues - opened