mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix memory leak
Fixed memory leak at snd_mixer_elem_detach().
This commit is contained in:
parent
ff9c030e65
commit
13098f8f42
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ int bag_del(bag_t *bag, void *ptr)
|
|||
bag1_t *b = list_entry(pos, bag1_t, list);
|
||||
if (b->ptr == ptr) {
|
||||
list_del(&b->list);
|
||||
free(b);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue