Memory Leak in bag_del_all function of src/mixer/bag.c

6 May
2025
6 May
'25
10:05 a.m.
alsa-project/alsa-lib issue #453 was reopened from zkh8227:
#Issue Summary The bag_del_all function in src/mixer/bag.c has a memory leak. It removes elements from a linked list but doesn't free the memory allocated for them in bag_add function, which uses malloc. Repeated calls to bag_add and bag_del_all will waste memory. #Fix Suggestion Change bag_del_all to free memory when removing elements.
Issue URL : https://github.com/alsa-project/alsa-lib/issues/453 Repository URL: https://github.com/alsa-project/alsa-lib
2
Age (days ago)
2
Last active (days ago)
0 comments
1 participants
participants (1)
-
GitHub issues - reopened