https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118498
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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.