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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <[email protected]>:

https://gcc.gnu.org/g:36be2a0e91c76da4afcd5ddc37e03f5800396387

commit r14-6356-g36be2a0e91c76da4afcd5ddc37e03f5800396387
Author: Jakub Jelinek <[email protected]>
Date:   Sat Dec 9 10:28:37 2023 +0100

    driver: Fix memory leak [PR93019]

    driver:finalize used by JIT clears the mdswitches pointer; if it was
    allocated before, that leaks the memory.

    2023-12-09  Costas Argyris  <[email protected]>
                Jakub Jelinek  <[email protected]>

            PR driver/93019
            * gcc.cc (driver::finalize): Call XDELETEVEC on mdswitches before
            clearing it.

    Signed-off-by: Costas Argyris <[email protected]>

Reply via email to