From: Jaroslav Kysela Date: Thu, 16 Sep 1999 09:26:28 +0000 (+0000) Subject: In alsa-lib in snd_seq_close() there are a couple of X-Git-Tag: v1.0.3~1432 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e801e2d77723b07afd8426a55a0504253041c129;p=alsa-lib.git In alsa-lib in snd_seq_close() there are a couple of missing calls to free(). --- diff --git a/src/seq/seq.c b/src/seq/seq.c index 1f6768e1..33ba13d6 100644 --- a/src/seq/seq.c +++ b/src/seq/seq.c @@ -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; }