https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94109
--- Comment #12 from Antony Lewis <antony at cosmologist dot info> --- Valgrid report is HEAP SUMMARY: ==23446== in use at exit: 40,000 bytes in 1 blocks ==23446== total heap usage: 26 allocs, 25 frees, 93,657 bytes allocated ==23446== ==23446== 40,000 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==23446== at 0x483577F: malloc (vg_replace_malloc.c:299) ==23446== by 0x402052: __debug_MOD_leaker (bug.f90:21) ==23446== by 0x4021DA: MAIN__ (bug.f90:32) ==23446== by 0x402211: main (bug.f90:30) ==23446== ==23446== LEAK SUMMARY: ==23446== definitely lost: 40,000 bytes in 1 blocks ==23446== indirectly lost: 0 bytes in 0 blocks ==23446== possibly lost: 0 bytes in 0 blocks ==23446== still reachable: 0 bytes in 0 blocks ==23446== suppressed: 0 bytes in 0 blocks