widl/parser.y: Correct use of free()?

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Jul 8 11:28:12 CDT 2006


Hi,

I am trying to constify some of the "name" strings in this file. But I am
running into problems caused by what seems to be an unusual use of the
free() function. To my novice eye, it appears that, in functions such as
get_type(), the author is trying to free strings that were not given space
via malloc().

Is free() being used correctly in this file? Can I remove these calls to
free()?

Thanks,

-- Andy.





More information about the wine-devel mailing list