mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Paranoia zeroing
This commit is contained in:
parent
c956c5a024
commit
34d8243828
1 changed files with 1 additions and 0 deletions
|
|
@ -645,6 +645,7 @@ int snd_pcm_munmap_data(snd_pcm_t *pcm, int stream)
|
|||
if ((err = pcm->ops->munmap_data(pcm, stream, str->mmap_data, str->mmap_data_size)) < 0)
|
||||
return err;
|
||||
free(str->channels);
|
||||
str->channels = 0;
|
||||
str->mmap_data = 0;
|
||||
str->mmap_data_size = 0;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue