alsa - mem leak?

前端 未结 3 1465
栀梦
栀梦 2020-12-19 15:31

I\'ve been chasing a memory leak (reported by \'valgrind --leak-check=yes\') and it appears to be coming from ALSA. This code has been in the free world for some time so I\'

3条回答
  •  孤城傲影
    2020-12-19 15:46

    The biggest reported leak is that the global configuration is cached for next usage.

    If you do not want this feature, simply call snd_config_update_free_global() after all snd_*_open*() calls.

    This function will free the cache." <---- Valgrind still detects leaks.

    This can be fixed if you call snd_config_update_free_global() after snd_pcm_close(handle);

提交回复
热议问题