Commit a0bdbb09 by David Malcolm Committed by David Malcolm

opt-suggestions.c: fix minor memory leak

gcc/ChangeLog:
	* opt-suggestions.c (option_proposer::build_option_suggestions):
	Release "option_values".

From-SVN: r264698
parent ed2d9d37
2018-09-28 David Malcolm <dmalcolm@redhat.com> 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 * coverage.c (get_coverage_counts): Convert problem-reporting dump
messages from MSG_OPTIMIZED_LOCATIONS to MSG_MISSED_OPTIMIZATION. messages from MSG_OPTIMIZED_LOCATIONS to MSG_MISSED_OPTIMIZATION.
* dumpfile.c (kind_as_string): New function. * dumpfile.c (kind_as_string): New function.
......
...@@ -152,6 +152,7 @@ option_proposer::build_option_suggestions (const char *prefix) ...@@ -152,6 +152,7 @@ option_proposer::build_option_suggestions (const char *prefix)
free (with_arg); free (with_arg);
} }
} }
option_values.release ();
} }
else else
add_misspelling_candidates (m_option_suggestions, option, add_misspelling_candidates (m_option_suggestions, option,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment