mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
In alsa-lib in snd_seq_close() there are a couple of
missing calls to free().
This commit is contained in:
parent
f132b5dc9d
commit
e801e2d777
1 changed files with 4 additions and 0 deletions
|
|
@ -115,6 +115,10 @@ int snd_seq_close(snd_seq_t *seq)
|
||||||
if (!seq)
|
if (!seq)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
res = close(seq->fd) < 0 ? -errno : 0;
|
res = close(seq->fd) < 0 ? -errno : 0;
|
||||||
|
if (seq->obuf)
|
||||||
|
free(seq->obuf);
|
||||||
|
if (seq->ibuf)
|
||||||
|
free(seq->ibuf);
|
||||||
free(seq);
|
free(seq);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue