From: David Malcolm Date: Fri, 28 Sep 2018 17:49:48 +0000 (+0000) Subject: opt-suggestions.c: fix minor memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0bdbb09bbe5dc8fad9684e12ec22d9a2f5b0d08;p=gcc.git opt-suggestions.c: fix minor memory leak gcc/ChangeLog: * opt-suggestions.c (option_proposer::build_option_suggestions): Release "option_values". From-SVN: r264698 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 856a72eae10..24afef245fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-28 David Malcolm + + * opt-suggestions.c (option_proposer::build_option_suggestions): + Release "option_values". + 2018-09-28 David Malcolm * coverage.c (get_coverage_counts): Convert problem-reporting dump diff --git a/gcc/opt-suggestions.c b/gcc/opt-suggestions.c index c68c9eedaf6..9444a35cb54 100644 --- a/gcc/opt-suggestions.c +++ b/gcc/opt-suggestions.c @@ -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,