According to the ALSA library document, we should free the return value of snd_device_name_get_hint() after use. Otherwise, it will cause the memory leak.
The return value should be freed when no longer needed.
In file plugins/audio_alsa.c, name in L547 and desc in L549 should be freed. We can simply use free().
Fixed in commit aaf355e02b13c717e077f4b4efad2f86e5880276