https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121697
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-08-27 CC| |jvdelisle at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- For what it's worth. $ gfc -g pdt_39.f03 $ $ valgrind --leak-check=full --show-leak-kinds=all ./a.out ==24124== Memcheck, a memory error detector ==24124== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==24124== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==24124== Command: ./a.out ==24124== ==24124== ==24124== HEAP SUMMARY: ==24124== in use at exit: 152 bytes in 2 blocks ==24124== total heap usage: 29 allocs, 27 frees, 6,412 bytes allocated ==24124== ==24124== 24 bytes in 1 blocks are still reachable in loss record 1 of 2 ==24124== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==24124== by 0x400F5E: __matrix_MOD_geta_r4 (pdt_39.f03:45) ==24124== by 0x40187A: MAIN__ (pdt_39.f03:97) ==24124== by 0x402350: main (pdt_39.f03:75) ==24124== ==24124== 128 bytes in 1 blocks are still reachable in loss record 2 of 2 ==24124== at 0x483EB26: malloc (vg_replace_malloc.c:446) ==24124== by 0x400BEB: __matrix_MOD_geta_r8 (pdt_39.f03:52) ==24124== by 0x401F4A: MAIN__ (pdt_39.f03:110) ==24124== by 0x402350: main (pdt_39.f03:75) ==24124== ==24124== LEAK SUMMARY: ==24124== definitely lost: 0 bytes in 0 blocks ==24124== indirectly lost: 0 bytes in 0 blocks ==24124== possibly lost: 0 bytes in 0 blocks ==24124== still reachable: 152 bytes in 2 blocks ==24124== suppressed: 0 bytes in 0 blocks ==24124== ==24124== For lists of detected and suppressed errors, rerun with: -s ==24124== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)