winealsa: snd_card_get_name uses strdup (Valgrind).

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Wed Jan 18 08:17:06 CST 2012


Hi,

Valgrind found this.  ALSA doesn't document anything, but it's in the ALSA source.
Also, the char ** is a hint towards strdup or the like.  If the string were statically
somewhere in alsa, they'd use a simple char*, like for that other snd_info_get_name function.

BTW, Valgrind also complains about that other ALSA functions, and it
looks like there was a patch to ALSA in 2010 to fix it (I've used Ubuntu
Lucid here, too old for that).

@Andrew, would you mind including this snippet in your current ALSA documentation improvement work?

Regards,
 Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winealsa-snd_card_get_name-uses-strdup-Valgrind.patch
Type: application/octet-stream
Size: 1252 bytes
Desc: 0001-winealsa-snd_card_get_name-uses-strdup-Valgrind.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120118/55cdd2d1/attachment.obj>


More information about the wine-patches mailing list