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'