In alsa-lib in snd_seq_close() there are a couple of

missing calls to free().
This commit is contained in:
Jaroslav Kysela 1999-09-16 09:26:28 +00:00
parent f132b5dc9d
commit e801e2d777

View file

@ -115,6 +115,10 @@ int snd_seq_close(snd_seq_t *seq)
if (!seq)
return -EINVAL;
res = close(seq->fd) < 0 ? -errno : 0;
if (seq->obuf)
free(seq->obuf);
if (seq->ibuf)
free(seq->ibuf);
free(seq);
return res;
}