valgrind reports "definitely lost" memory for very simple codes

Steve Kargl sgk@troutmask.apl.washington.edu
Fri May 8 05:05:00 GMT 2015


On Thu, May 07, 2015 at 08:49:53PM -0700, Damian Rouson wrote:
> 
> Below are several very short programs in which valgrind reports memory
> leaks.
> 
> $ cat intrinsic-variable.f90
> 
> real, allocatable :: x
> x=0.
> end
> 

Valgrind is broken here.  As the program is exiting,
there is no need for the program to deallocate the
memory.  On termination, the OS will reclaim the
memory.

-- 
Steve



More information about the Fortran mailing list