pcm: Fix memory leak at snd_pcm_new when THREAD_SAVE_API is defined

GitHub pull_request - opened github at alsa-project.org
Mon Apr 27 15:39:42 CEST 2020


alsa-project/alsa-lib pull request #42 was opened from chunxuxiao:

The pthread_mutexattr_t object should be destroyed by calling
pthread_mutexattr_destroy(), otherwise it may cause a potential
memory leak due to the different implement of pthread_mutexattr_init()

Signed-off-by: chunxu.li <chunxuxiao at gmail.com>

Request URL   : https://github.com/alsa-project/alsa-lib/pull/42
Patch URL     : https://github.com/alsa-project/alsa-lib/pull/42.patch
Repository URL: https://github.com/alsa-project/alsa-lib


More information about the Alsa-devel mailing list