Re: [PATCH] c++: don't leak 'arglist' in build_new_op

2021-12-13 Thread Jason Merrill via Gcc-patches
On 12/10/21 11:21, Patrick Palka wrote: 'arglist' can be captured by a conversion within 'candidates', but if we use a releasing_vec then we'll be sure to free it only after 'candidates' is freed by obstack_free. Bootstrapped and regtested in x86_64-pc-linux-gnu, does this look OK for trunk? O

[PATCH] c++: don't leak 'arglist' in build_new_op

2021-12-10 Thread Patrick Palka via Gcc-patches
'arglist' can be captured by a conversion within 'candidates', but if we use a releasing_vec then we'll be sure to free it only after 'candidates' is freed by obstack_free. Bootstrapped and regtested in x86_64-pc-linux-gnu, does this look OK for trunk? gcc/cp/ChangeLog: * call.c (build_n