diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-02-27 09:59:18 +0000 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2006-02-27 09:59:18 +0000 |
commit | 3f00bc728ba1853cc1b010e59d6230f533c44f1c (patch) | |
tree | cf72bde905b2cb3a43425adcddf21c4db3382903 /src/seq | |
parent | 4433248bf3d6a89ca2136f41198ca2c9aa566953 (diff) |
fix a typo
Fix a memory leak in an error path of snd_seq_hw_open().
Diffstat (limited to 'src/seq')
-rw-r--r-- | src/seq/seq_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |