fix a typo

Fix a memory leak in an error path of snd_seq_hw_open().
This commit is contained in:
Clemens Ladisch 2006-02-27 09:59:18 +00:00
parent 4433248bf3
commit 3f00bc728b

View 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);