Skip to contentSkip to conversation

mixer: Fix memory leak for more than 16 file descriptor case

alsa-devel GitHub pull_request - opened 1 participant 1 message Jan 6, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-lib pull request #20 was opened from dfries:

I saw this when digging through the source code, wrote up a test case, and verified with valgrind. I don't have that many sound cards so I modified mixer.c to always take the conditional. alloca seemed like the least effort way to fix this. Other thoughts were to test pfds != spfds and free, but given how little bytes would be allocated putting on the stack seems reasonable.

Request URL : https://github.com/alsa-project/alsa-lib/pull/20
Patch URL : https://github.com/alsa-project/alsa-lib/pull/20.patch
Repository URL: https://github.com/alsa-project/alsa-lib
_______________________________________________
Alsa-devel mailing list [email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel