https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94378
--- Comment #3 from Simon Marchi <simon.marchi at polymtl dot ca> --- Thanks, I confirm that issue with the snippet I posted is fixed. It didn't fix the original issue that lead be to making this minimal reproducer, so I guess I'll have to go back and make another reproducer. In the mean time, in case you want to take a look, what I believe to be a false positive is triggered when building this project: https://github.com/efficios/argpar It's not a minimal reproducer, but it's not big either and it's easy to build / has no external dependency. There's the chance that there is actually a leak, but I've looked at the analyzer report over and over and I don't see anything wrong.