https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99055
Bug ID: 99055 Summary: memory leak in warn_parm_array_mismatch Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- ==23200== Memcheck, a memory error detector ==23200== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==23200== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==23200== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o ssa-dom-thread-2.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c ==23200== ==23200== ==23200== HEAP SUMMARY: ==23200== in use at exit: 1,860,863 bytes in 2,692 blocks ==23200== total heap usage: 26,486 allocs, 23,794 frees, 6,321,282 bytes allocated ==23200== ==23200== 7 bytes in 1 blocks are definitely lost in loss record 1 of 675 ==23200== at 0x4C2E2DF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==23200== by 0x28ECBF6: xmalloc (xmalloc.c:147) ==23200== by 0x28ECD6F: xstrdup (xstrdup.c:34) ==23200== by 0x15EF359: print_generic_expr_to_str(tree_node*) (tree-pretty-print.c:179) ==23200== by 0xBD992D: warn_parm_array_mismatch(unsigned int, tree_node*, tree_node*) (c-warn.c:3589) ==23200== by 0xA4089D: start_function(c_declspecs*, c_declarator*, tree_node*) (c-decl.c:9601) ==23200== by 0xAAD6A4: c_parser_declaration_or_fndef(c_parser*, bool, bool, bool, bool, bool, tree_node**, vec<c_token, va_heap, vl_ptr>, bool, tree_node*, oacc_routine_data*, bool*) (c-parser.c:2440) ==23200== by 0xAABE71: c_parser_external_declaration(c_parser*) (c-parser.c:1777) ==23200== by 0xAAB98D: c_parser_translation_unit(c_parser*) (c-parser.c:1650) ==23200== by 0xAEBF10: c_parse_file() (c-parser.c:21990) ==23200== by 0xB89212: c_common_parse_file() (c-opts.c:1218) ==23200== by 0x148FCD3: compile_file() (toplev.c:457)