https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99052

            Bug ID: 99052
           Summary: memory leak in gfc_match_actual_arglist
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Compiling module_timing.fppized.f90 of 521.wrf_r like

1612940048.84: ==2302== Memcheck, a memory error detector
1612940048.84: ==2302== Copyright (C) 2002-2017, and GNU GPL'd, by Julian
Seward et al.
1612940048.84: ==2302== Using Valgrind-3.15.0 and LibVEX; rerun with -h for
copyright info
1612940048.84: ==2302== Command:
/home/rguenther/install/gcc-test/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/11.0.0/f951
module_timing.fppized.f90 -I . -I ./netcdf/include -I ./inc -quiet -dumpbase
module_timing.fppized.f90 -dumpbase-ext .f90 -march=znver2 -g0 -Ofast
-std=legacy -fconvert=big-endian -fno-openmp -fintrinsic-modules-path
/home/rguenther/install/gcc-test/usr/local/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.0.0/finclude
-o /tmp/ccpIqHn9.s
1612940048.84: ==2302==
1612940054.84: ==2302==
1612940054.84: ==2302== HEAP SUMMARY:
1612940054.84: ==2302==     in use at exit: 1,896,871 bytes in 3,356 blocks
1612940054.84: ==2302==   total heap usage: 20,895 allocs, 17,539 frees,
11,039,674 bytes allocated
1612940054.84: ==2302==
1612940054.84: ==2302== 40 bytes in 1 blocks are definitely lost in loss record
30 of 861
1612940054.84: ==2302==    at 0x4C306B5: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
1612940054.84: ==2302==    by 0x16ABBE0: xcalloc (xmalloc.c:162)
1612940054.84: ==2302==    by 0x6F16E9: gfc_match_actual_arglist(int,
gfc_actual_arglist**, bool) (primary.c:1899)
1612940054.84: ==2302==    by 0x6F460D: gfc_match_rvalue(gfc_expr**)
(primary.c:3925)
1612940054.84: ==2302==    by 0x6C88EE: match_primary (matchexp.c:157)
1612940054.84: ==2302==    by 0x6C88EE: match_level_1 (matchexp.c:211)
1612940054.84: ==2302==    by 0x6C88EE: match_mult_operand(gfc_expr**)
(matchexp.c:267)
1612940054.84: ==2302==    by 0x6C8B38: match_add_operand(gfc_expr**)
(matchexp.c:356)
1612940054.84: ==2302==    by 0x6C8D8C: match_level_2(gfc_expr**)
(matchexp.c:480)
1612940054.84: ==2302==    by 0x6C8EE2: match_level_3(gfc_expr**)
(matchexp.c:551)
1612940054.84: ==2302==    by 0x6C8FD4: match_level_4 (matchexp.c:599)
1612940054.84: ==2302==    by 0x6C8FD4: match_and_operand(gfc_expr**)
(matchexp.c:693)
1612940054.84: ==2302==    by 0x6C91C2: match_or_operand(gfc_expr**)
(matchexp.c:722)
1612940054.84: ==2302==    by 0x6C9292: match_equiv_operand(gfc_expr**)
(matchexp.c:765)
1612940054.84: ==2302==    by 0x6C9364: match_level_5(gfc_expr**)
(matchexp.c:811)

Reply via email to