bfd_arch_list() doc FUNCTION bfd_arch_list
SYNOPSIS const char **bfd_arch_list (void); DESCRIPTION Return a freshly malloced NULL-terminated vector of the names of all the valid BFD architectures. Do not modify the names. _Return a freshly malloced_ grep gave me 3 hits of bfd_arch_list() call: $ grep -Irn 'bfd_arch_list' ./ ./bucomm.c:205: for (arch = bfd_arch_list (); *arch; arch++) ./windmc.c:250: const char **arch = bfd_arch_list (); ./windres.c:1076: const char **arch = bfd_arch_list(); Every time we don't save result of bfd_arch_list() and we don't free it. -- Summary: Multiple meleaks after bfd_arch_list() calls Product: binutils Version: unspecified Status: NEW Severity: minor Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: darkjames at darkjames dot ath dot cx CC: bug-binutils at gnu dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=5536 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils