https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118498
--- Comment #4 from Alejandro Colomar <alx at kernel dot org> --- (In reply to Sam James from comment #1) > Where's the deallocation? There's not. I expected that(In reply to Andrew Pinski from comment #2) > (In reply to Sam James from comment #1) > > Where's the deallocation? > > I think he is saying there is a missing leak detection here. > > -Wmismatched-dealloc does not come into play if there is no de-allocation (a > leak). it is only analyzer which is set up for leak detection IIRC. Oops, my bad. What about the leak? Is it not reported because main() is special? Or is it a bug?