From: Clemens Ladisch Date: Mon, 27 Feb 2006 09:59:18 +0000 (+0000) Subject: fix a typo X-Git-Tag: v1.0.11rc4~23 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3f00bc728ba1853cc1b010e59d6230f533c44f1c;p=alsa-lib.git fix a typo Fix a memory leak in an error path of snd_seq_hw_open(). --- diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c index c92f3648..56d87a11 100644 --- a/src/seq/seq_hw.c +++ b/src/seq/seq_hw.c @@ -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);