https://sourceware.org/bugzilla/show_bug.cgi?id=31162
Bug ID: 31162 Summary: Memory Leak in ldwrite.c Product: binutils Version: 2.32 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: shiyuyuranzh at gmail dot com Target Milestone: --- Created attachment 15257 --> https://sourceware.org/bugzilla/attachment.cgi?id=15257&action=edit Memory Leak in ldwrite.c Hi, I found a memory leak bug in the source code of binutils, and I have shown the execution sequence below. This bug exists in the file ldwrite.c. The red text illustrates the steps that generate the bug. As shown in the diagram, in the function build_link_order, the variables link_order->u.data.contents and link_order->u.reloc.p are allocated memory. However, they are not freed, which will lead to a memory leak. Although reported bug trace is for version 2.32 but i've check this bug still existing in latest version. Can you help to check if this bug is true? Thanks for your effort. -- You are receiving this mail because: You are on the CC list for the bug.