Fix misc stuff seen by clang-static-analyzer.
authorMartin Liska <mliska@suse.cz>
Thu, 27 Jun 2019 08:21:32 +0000 (10:21 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 27 Jun 2019 08:21:32 +0000 (08:21 +0000)
commitc2f7a665a184e4ff00a6ac3fc147f63f276cc5a5
tree73d8a4968841119728532fccadcef88a226783c5
parentb5b31291bd21749edc3d1f1d74ac09fcb6a89310
Fix misc stuff seen by clang-static-analyzer.

2019-06-27  Martin Liska  <mliska@suse.cz>

* lto-dump.c (struct symbol_entry): Add default dtor.
(struct variable_entry): Likewise.
(struct function_entry): Likewise.
(dump_list_functions): Release memory.
(dump_list_variables): Likewise.
2019-06-27  Martin Liska  <mliska@suse.cz>

* libgcov-util.c (gcov_profile_merge): Release allocated
memory.
(calculate_overlap): Likewise.

From-SVN: r272733
gcc/lto/ChangeLog
gcc/lto/lto-dump.c
libgcc/ChangeLog
libgcc/libgcov-util.c