winealsa: snd_card_get_name uses strdup (Valgrind). (3rd and last)

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Tue Jan 31 05:55:16 CST 2012


Andrew Eikum updated ALSA's documentation;a=commitdiff;h=226a34ac09e5d9c08ab8845e4c2e3fbd7b64010b
Now the requirement to free() is documented.

If that patch gets rejected too, I'll stop wasting my time on this issue and
let some const&cast expert figure out how to make gcc happy.

The dilemma: "bla" ist const char*, but free() does not want a const.
Work-arounds off the net are us ugly as strdup("bla") or using 2 pointers to the same address.

        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: 1885 bytes
Desc: 0001-winealsa-snd_card_get_name-uses-strdup-Valgrind.patch
URL: <>

More information about the wine-patches mailing list