]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: fix memory leak of m_option_mgr
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 31 Oct 2024 16:24:55 +0000 (12:24 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 31 Oct 2024 16:24:55 +0000 (12:24 -0400)
commitd1d3c17258a564ade216ec908ac99ab6c78f8e3e
treead205ca4aad709df9dc0655c4b09ad1b3a85e48b
parentd6868b284379ecb7deb65d60f6f17fd6c34c7d6f
diagnostics: fix memory leak of m_option_mgr

Fix some noise seen in "make selftest-valgrind".

gcc/ChangeLog:
* diagnostic.cc (diagnostic_context::finish): Delete and reset
m_option_mgr.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic.cc