This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/6] Fix parser memory leak in cilk_simd_fn_info


On 11/23/2015 06:48 AM, marxin wrote:
gcc/cp/ChangeLog:

2015-11-23  Martin Liska  <mliska@suse.cz>

	* parser.c (cp_parser_late_parsing_cilk_simd_fn_info):
	Release tokens.
There's a vec of objects in cilk_simd_fn_info, so unless that vec is copied elsewhere, we definitely want to release them before we blow away parser->cilk_simd_fn_info. AFAICT the vec is never copied elsewhere. So...

OK for the trunk.

jeff



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]