[Bug c/54202] Overeager warning about freeing non-heap objects

thiago at kde dot org gcc-bugzilla@gcc.gnu.org
Tue May 30 22:18:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54202

--- Comment #6 from Thiago Macieira <thiago at kde dot org> ---
ping.

If you can't fix GCC so that it can prove that the free is on a non-heap
object, then please change the warning to indicate that GCC may be wrong. For
example:

warning: free() may be called with non-heap object 'name'


More information about the Gcc-bugs mailing list