bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/26388] A memory leak in xmalloc and xrealloc


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/26388] A memory leak in xmalloc and xrealloc
Date: Fri, 14 Aug 2020 12:06:04 +0000

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82fcdb39388c6690699d41b7022b054c2de2554c

commit 82fcdb39388c6690699d41b7022b054c2de2554c
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Aug 14 20:19:39 2020 +0930

    PR26388, objdump debug dump memory leaks

    num_debug_info_entries is used not just as a count but also as a flag
    (DEBUG_INFO_UNAVAILABLE) after some errors.  That means
    num_debug_info_entries can't be used when cleaning up malloc'd info.

            PR 26388
            * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
            of debug_information.  Correct test of max_loc_offsets and
            max_range_lists.
            * rddbg.c (read_debugging_info): Free dhandle on error.

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


reply via email to

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