https://sourceware.org/bugzilla/show_bug.cgi?id=29262
Bug ID: 29262 Summary: A Potential Memory Leak Bug Product: binutils Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: 1157401338 at qq dot com Target Milestone: --- Created attachment 14151 --> https://sourceware.org/bugzilla/attachment.cgi?id=14151&action=edit diagram of memory leak bug Hi, I found a potential memory leak bug in the project source code of binutils, I have shown the execution sequence of the program that may generate the bug on a diagram which is added to the attachment. The text in red illustrates the steps that generate the bug The red arrows represent call relationships The green text illustrates the files and functions whose code snippets are located below the green text. In short, the key to the bug is the third step in the diagram. In the third step, when the true branch is selected, the program will directly "return FALSE" instead of doing a free operation on 's',and the function call in the condition statement does not do a free operation on 's', which leads to a memory leak. I look forward to your reply and thank you very much for your patience! -- You are receiving this mail because: You are on the CC list for the bug.