http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51160
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |burnus at gcc dot gnu.org, | |janus at gcc dot gnu.org Summary|Memory leak with abstract |[OOP] Memory leak with |type |abstract type --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-16 15:41:41 UTC --- I think your issue has nothing to do with abstract types but rather with working with polymorphic data ("CLASS"). I think the issue is that "r"'s "u" component in "sub" is not freed at the end, which would be a duplicate of PR 46321.