bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/5536] New: Multiple meleaks after bfd_arch_list() calls


From: darkjames at darkjames dot ath dot cx
Subject: [Bug binutils/5536] New: Multiple meleaks after bfd_arch_list() calls
Date: 2 Jan 2008 21:32:31 -0000

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]