[Bug ipa/97346] IPA reference reference_vars_to_consider leaks

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 8 15:02:30 GMT 2021


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.


More information about the Gcc-bugs mailing list