params_free functions don't work
![](https://secure.gravatar.com/avatar/238e13a45a9c1e9b6a7ed5d0be0ccefd.jpg?s=120&d=mm&r=g)
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
343
Age (days ago)
343
Last active (days ago)
0 comments
1 participants
participants (1)
-
GitHub issues - opened