aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.h
diff options
context:
space:
mode:
authorMikael Morin <mikael@gcc.gnu.org>2023-09-02 12:55:25 +0200
committerMikael Morin <mikael@gcc.gnu.org>2023-09-02 12:55:25 +0200
commit474473f0425b404cd3ce15e73844de4608ac4ba7 (patch)
tree5381550779d133f44bba928777459a1be0acacd1 /gcc/tree-inline.h
parent4e2d53c943400e8b5d49a7d5aab4a1ad046aefba (diff)
downloadgcc-474473f0425b404cd3ce15e73844de4608ac4ba7.zip
gcc-474473f0425b404cd3ce15e73844de4608ac4ba7.tar.gz
gcc-474473f0425b404cd3ce15e73844de4608ac4ba7.tar.bz2
diagnostics: Delete config pointer before overwriting it
Delete m_client_data_hooks before it is reassigned in tree_diagnostics_defaults. This fixes a small memory leak in the fortran frontend, which restores the diagnostics configurations to their default values with a call to tree_diagnostics_defaults at the end of the main parse hook. gcc/ChangeLog: * tree-diagnostic.cc (tree_diagnostics_defaults): Delete allocated pointer before overwriting it.
Diffstat (limited to 'gcc/tree-inline.h')
0 files changed, 0 insertions, 0 deletions