http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57762
Bug ID: 57762 Summary: [4.9 Regression] Memory leak in gfortran.dg/class_array_7.f03 after revision 200084 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: bur...@net-b.de Host: x86_64-apple-darwin10 Target: x86_64-apple-darwin10 Build: x86_64-apple-darwin10 As said in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56596#c2, I see the following memory leak under valgrind --leak-check=full ==47095== HEAP SUMMARY: ==47095== in use at exit: 168 bytes in 2 blocks ==47095== total heap usage: 25 allocs, 23 frees, 7,125 bytes allocated ==47095== ==47095== 80 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==47095== at 0x100013679: malloc (vg_replace_malloc.c:266) ==47095== by 0x100001378: __realloc_MOD_reallocate (class_array_7.f03:31) ==47095== by 0x1000019E6: MAIN__ (class_array_7.f03:55) ==47095== by 0x100001B7B: main (class_array_7.f03:49) ==47095== ==47095== LEAK SUMMARY: ==47095== definitely lost: 80 bytes in 1 blocks ==47095== indirectly lost: 0 bytes in 0 blocks ==47095== possibly lost: 0 bytes in 0 blocks ==47095== still reachable: 0 bytes in 0 blocks ==47095== suppressed: 88 bytes in 1 blocks ==47095== ==47095== For counts of detected and suppressed errors, rerun with: -v ==47095== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) starting at revision 200085 (no leak at r200083). Note that I messed up the bracketing in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56596#c3