]> git.alsa-project.org Git - alsa-lib.git/commitdiff
In alsa-lib in snd_seq_close() there are a couple of
authorJaroslav Kysela <perex@perex.cz>
Thu, 16 Sep 1999 09:26:28 +0000 (09:26 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 16 Sep 1999 09:26:28 +0000 (09:26 +0000)
missing calls to free().

src/seq/seq.c

index 1f6768e1b383df5c1c6c1f681ec6b59c5b56764d..33ba13d623c624a3fd952f0886a9ae65bf7a6146 100644 (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;
 }