Fixed memory leak introduced with new ring buffer place

This commit is contained in:
Jaroslav Kysela 2002-04-23 15:59:46 +00:00
parent c941c548f8
commit 9fd32231dd

View file

@ -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;
}