https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99716
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Thanks. Looks very similar to bug 93695 - the analyzer "gets confused" in how it tracks allocations in a loop (albeit with a different kind of resource, and thus worth tracking as a separate bug).