https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689
Bug ID: 115689 Summary: Missed deallocation before exit Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jvdelisle2 at gmail dot com Target Milestone: --- The following gives valgrind error when the deallocate is commented out: program test integer, allocatable, dimension(:) :: VLQ integer i, filo allocate(VLQ(0)) do i=1, 5 filo = 2**i + 27 VLQ = [ VLQ, int(filo) ] print *, VLQ end do !deallocate(VLQ) end program ==16247== HEAP SUMMARY: ==16247== in use at exit: 20 bytes in 1 blocks ==16247== total heap usage: 38 allocs, 37 frees, 5,645 bytes allocated ==16247== ==16247== LEAK SUMMARY: ==16247== definitely lost: 20 bytes in 1 blocks