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

            Bug ID: 108923
           Summary: memory leak of get_intrinsic_dummy_arg result
           Product: gcc
           Version: 13.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: ---

valgrind leak check complains quite often (when building SPEC 2017) like

==8707== 128 bytes in 8 blocks are definitely lost in loss record 750 of 935
==8707==    at 0x4C39571: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8707==    by 0x1C25680: xcalloc (xmalloc.c:164)
==8707==    by 0x73C891: get_intrinsic_dummy_arg (intrinsic.cc:4265)
==8707==    by 0x73C891: sort_actual(char const*, gfc_actual_arglist**,
gfc_intrinsic_arg*, locus*) (intrinsic.cc:4433)
==8707==    by 0x73CD54: check_specific(gfc_intrinsic_sym*, gfc_expr*, int)
(intrinsic.cc:4774)
==8707==    by 0x744F21: gfc_intrinsic_func_interface(gfc_expr*, int)
(intrinsic.cc:5032)
==8707==    by 0x79BD57: resolve_unknown_f (resolve.cc:2998)
==8707==    by 0x79BD57: resolve_function (resolve.cc:3355)
==8707==    by 0x79BD57: gfc_resolve_expr(gfc_expr*) [clone .part.56]
(resolve.cc:7204)
==8707==    by 0x79D469: gfc_resolve_expr (resolve.cc:7171)
==8707==    by 0x79D469: resolve_operator(gfc_expr*) (resolve.cc:4101)
==8707==    by 0x79990F: gfc_resolve_expr(gfc_expr*) [clone .part.56]
(resolve.cc:7197)
==8707==    by 0x7A2274: gfc_resolve_expr (resolve.cc:11893)
==8707==    by 0x7A2274: gfc_resolve_code(gfc_code*, gfc_namespace*)
(resolve.cc:12004)
==8707==    by 0x7A0D4F: gfc_resolve_blocks(gfc_code*, gfc_namespace*)
(resolve.cc:10989)
==8707==    by 0x7A10A8: gfc_resolve_code(gfc_code*, gfc_namespace*)
(resolve.cc:11990)
==8707==    by 0x7A0D4F: gfc_resolve_blocks(gfc_code*, gfc_namespace*)
(resolve.cc:10989)

Reply via email to