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

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

==3511== Memcheck, a memory error detector
==3511== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3511== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==3511== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o
ssa-dom-thread-1.s
/home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c
==3511==
==3511==
==3511== HEAP SUMMARY:
==3511==     in use at exit: 2,402,368 bytes in 5,697 blocks
==3511==   total heap usage: 424,419 allocs, 418,722 frees, 208,122,638 bytes
allocated
==3511==
==3511== 2 bytes in 1 blocks are definitely lost in loss record 1 of 921
==3511==    at 0x4C2E2DF: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==3511==    by 0x28ECDF6: xmalloc (xmalloc.c:147)
==3511==    by 0x28ECF6F: xstrdup (xstrdup.c:34)
==3511==    by 0x15EF51F: print_generic_expr_to_str(tree_node*)
(tree-pretty-print.c:179)
==3511==    by 0xC532AD: maybe_warn_rdwr_sizes(hash_map<rdwr_access_hash,
attr_access, simple_hashmap_traits<default_hash_traits<rdwr_access_hash>,
attr_access> >*, tree_node*, tree_node*, tree_node*) (calls.c:2035)
==3511==    by 0xC5535F: initialize_argument_information(int, arg_data*,
args_size*, int, tree_node*, tree_node*, tree_node*, tree_node*,
cumulative_args_t, int, rtx_def**, poly_int_pod<1u, long>*, int*, int*, bool*,
bool) (calls.c:2625)
==3511==    by 0xC5957C: expand_call(tree_node*, rtx_def*, int) (calls.c:4009)
==3511==    by 0xE84D06: expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool) (expr.c:11279)
==3511==    by 0xE77230: expand_expr_real(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool) (expr.c:8513)
==3511==    by 0xC7C8EA: expand_expr(tree_node*, rtx_def*, machine_mode,
expand_modifier) (expr.h:282)
==3511==    by 0xC858B6: expand_call_stmt(gcall*) (cfgexpand.c:2840)
==3511==    by 0xC8933E: expand_gimple_stmt_1(gimple*) (cfgexpand.c:3844)

Reply via email to