https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97346
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-02-08 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I will check If I recall correctly, during analysis the vector is only collected for dumps, so that is why vec_free is conditional. Since vec_free is noop on NULL, we could just free it anyway. I think it is the delete call that causes the leak.