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 <ja...@gcc.gnu.org>:

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

commit r14-6356-g36be2a0e91c76da4afcd5ddc37e03f5800396387
Author: Jakub Jelinek <ja...@redhat.com>
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  <costas.argy...@gmail.com>
                Jakub Jelinek  <ja...@redhat.com>

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

    Signed-off-by: Costas Argyris <costas.argy...@gmail.com>

Reply via email to