snd_card_get_name uses strdup (Valgrind).
Hi there's a small memory leak in winealsa, tentatively plugged by patches #83353, #83334 and #82900. It would be nice if somebody who feels like struggling with const warnings in gcc would get a fix accepted in git. The dilemma: a literal "foo" is a const char*, free() does not want a const and casts are the root of all evil in C. Thank you, Jörg Höhle
Hello Joerg, On Wed, Feb 01, 2012 at 01:37:44PM +0100, Joerg-Cyril.Hoehle(a)t-systems.com wrote:
there's a small memory leak in winealsa, tentatively plugged by patches #83353, #83334 and #82900.
It would be nice if somebody who feels like struggling with const warnings in gcc would get a fix accepted in git.
The dilemma: a literal "foo" is a const char*, free() does not want a const and casts are the root of all evil in C. something like the attached patch should be more palatable.
bye michael
participants (2)
-
Joerg-Cyril.Hoehle@t-systems.com -
Michael Stefaniuc