From a0bdbb09bbe5dc8fad9684e12ec22d9a2f5b0d08 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 28 Sep 2018 17:49:48 +0000 Subject: [PATCH] opt-suggestions.c: fix minor memory leak gcc/ChangeLog: * opt-suggestions.c (option_proposer::build_option_suggestions): Release "option_values". From-SVN: r264698 --- gcc/ChangeLog | 5 +++++ gcc/opt-suggestions.c | 1 + 2 files changed, 6 insertions(+) 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, -- 2.30.2