mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05: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)
|
if ((err = pcm->ops->munmap_data(pcm, stream, str->mmap_data, str->mmap_data_size)) < 0)
|
||||||
return err;
|
return err;
|
||||||
free(str->channels);
|
free(str->channels);
|
||||||
|
str->channels = 0;
|
||||||
str->mmap_data = 0;
|
str->mmap_data = 0;
|
||||||
str->mmap_data_size = 0;
|
str->mmap_data_size = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue