]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fix a typo
authorClemens Ladisch <clemens@ladisch.de>
Mon, 27 Feb 2006 09:59:18 +0000 (09:59 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 27 Feb 2006 09:59:18 +0000 (09:59 +0000)
Fix a memory leak in an error path of snd_seq_hw_open().

src/seq/seq_hw.c

index c92f3648e75fdfc846767b0a552b15580c519498..56d87a11c602340ed6b3bf622fa8c9a869818b5c 100644 (file)
@@ -503,7 +503,7 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
        if (streams & SND_SEQ_OPEN_INPUT) {
                seq->ibuf = (snd_seq_event_t *) calloc(sizeof(snd_seq_event_t), seq->ibufsize = SND_SEQ_IBUF_SIZE);
                if (!seq->ibuf) {
-                       free(seq->ibuf);
+                       free(seq->obuf);
                        free(hw);
                        free(seq);
                        close(fd);