mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fixed memory leak by Steve.
This commit is contained in:
parent
8328751e64
commit
5b771eb68e
1 changed files with 1 additions and 0 deletions
|
|
@ -595,6 +595,7 @@ int snd_seq_event_input(snd_seq_t *seq, snd_seq_event_t **ev)
|
|||
return -ENOMEM;
|
||||
cell = snd_seq_input_cell_out(seq);
|
||||
memcpy(*ev, &cell->ev, sizeof(snd_seq_event_t));
|
||||
snd_seq_free_cell(cell);
|
||||
return seq->cells;
|
||||
}
|
||||
count = read(seq->fd, seq->ibuf, seq->ibufsize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue