opt-suggestions.c: fix minor memory leak
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 28 Sep 2018 17:49:48 +0000 (17:49 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 28 Sep 2018 17:49:48 +0000 (17:49 +0000)
gcc/ChangeLog:
* opt-suggestions.c (option_proposer::build_option_suggestions):
Release "option_values".

From-SVN: r264698

gcc/ChangeLog
gcc/opt-suggestions.c

index 856a72eae10c380e81541fe549d0276ab74c5490..24afef245fca2935de6654860ea8649cef5b78d3 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-28  David Malcolm  <dmalcolm@redhat.com>
+
+       * opt-suggestions.c (option_proposer::build_option_suggestions):
+       Release "option_values".
+
 2018-09-28  David Malcolm  <dmalcolm@redhat.com>
 
        * coverage.c (get_coverage_counts): Convert problem-reporting dump
index c68c9eedaf6c59c5a890e17daff2bbce63c047e3..9444a35cb543a7467d82b806586f6e7487c2b6cc 100644 (file)
@@ -152,6 +152,7 @@ option_proposer::build_option_suggestions (const char *prefix)
                          free (with_arg);
                        }
                    }
+                 option_values.release ();
                }
              else
                add_misspelling_candidates (m_option_suggestions, option,