[Bug fortran/85840] Memory leak in write.c
jjcogliati-r1 at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Sun May 20 14:38:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85840
--- Comment #4 from Joshua Cogliati <jjcogliati-r1 at yahoo dot com> ---
And to replicate it with the simple program:
gfortran -Wall -g -o simple simple.f90
valgrind --leak-check=full ./simple
and you get things like:
==19171== 323 bytes in 1 blocks are definitely lost in loss record 4 of 4
==19171== at 0x4C2CB6B: malloc (vg_replace_malloc.c:299)
==19171== by 0x4E53454: _gfortrani_xmalloc (memory.c:42)
==19171== by 0x4FD637A: write_float_0 (write.c:1593)
==19171== by 0x4FCD98C: formatted_transfer_scalar_write (transfer.c:2041)
==19171== by 0x4FCDF9C: formatted_transfer (transfer.c:2279)
==19171== by 0x4008A5: MAIN__ (simple.f90:10)
==19171== by 0x4008EB: main (simple.f90:11)
More information about the Gcc-bugs
mailing list