[Bug libgcc/109685] [13/14 Regression] Memory leak in `__deregister_frame`

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 3 07:47:43 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109685

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Neumann <tneumann@gcc.gnu.org>:

https://gcc.gnu.org/g:5cf60b6ba111f4169305c7832b063b000e9ec36a

commit r14-1514-g5cf60b6ba111f4169305c7832b063b000e9ec36a
Author: Thomas Neumann <tneumann@users.sourceforge.net>
Date:   Tue May 2 16:21:09 2023 +0200

    release the sorted FDE array when deregistering a frame [PR109685]

    The atomic fastpath bypasses the code that releases the sort
    array which was lazily allocated during unwinding. We now
    check after deregistering if there is an array to free.

    libgcc/ChangeLog:
            PR libgcc/109685
            * unwind-dw2-fde.c: Free sort array in atomic fast path.


More information about the Gcc-bugs mailing list