This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/16425] New: cppcheck: libiberty/regex.c on non-x86* targets


https://sourceware.org/bugzilla/show_bug.cgi?id=16425

            Bug ID: 16425
           Summary: cppcheck: libiberty/regex.c on non-x86* targets
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com

[regex.c:2457]: (error) Memory leak: compile_stack.stack

  compile_stack.stack = TALLOC (INIT_COMPILE_STACK_SIZE, compile_stack_elt_t);
[...]
      PATFETCH (c);

PATFETCH:
  do {if (p == pend) return REG_EEND;                                   \


But libiberty/regex.c is used only by these sources:


opcodes/epiphany-asm.c
opcodes/epiphany-desc.c
opcodes/fr30-asm.c
opcodes/fr30-desc.c
opcodes/frv-asm.c
opcodes/frv-desc.c
opcodes/ip2k-asm.c
opcodes/ip2k-desc.c
opcodes/iq2000-asm.c
opcodes/iq2000-desc.c
opcodes/lm32-asm.c
opcodes/lm32-desc.c
opcodes/m32c-asm.c
opcodes/m32c-desc.c
opcodes/m32r-asm.c
opcodes/m32r-desc.c
opcodes/mep-asm.c
opcodes/mep-desc.c
opcodes/mt-asm.c
opcodes/mt-desc.c
opcodes/openrisc-asm.c
opcodes/openrisc-desc.c
opcodes/xc16x-asm.c
opcodes/xc16x-desc.c
opcodes/xstormy16-asm.c
opcodes/xstormy16-desc.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]