mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed memory leak introduced with new ring buffer place
This commit is contained in:
parent
c941c548f8
commit
9fd32231dd
1 changed files with 4 additions and 0 deletions
|
|
@ -661,6 +661,10 @@ int snd_pcm_close(snd_pcm_t *pcm)
|
|||
return err;
|
||||
if (pcm->name)
|
||||
free(pcm->name);
|
||||
if (pcm->hw.link_dst)
|
||||
free(pcm->hw.link_dst);
|
||||
if (pcm->appl.link_dst)
|
||||
free(pcm->appl.link_dst);
|
||||
free(pcm);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue