This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49466] [4.6/4.7 Regression] Memory leak with assignment of extended derived types
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Jun 2011 18:45:10 +0000
- Subject: [Bug fortran/49466] [4.6/4.7 Regression] Memory leak with assignment of extended derived types
- Auto-submitted: auto-generated
- References: <bug-49466-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49466
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-19 18:45:09 UTC ---
> In the first assignment b.U is allocated, in the second assignment it is not
> freed, before being allocated again.
I don't think it should be freed then allocated for the second assignment in
the code in comment#4.