[PATCH 1/6] Fix memory leak in cilk
Trevor Saunders
tbsaunde@tbsaunde.org
Mon Nov 23 20:29:00 GMT 2015
> diff --git a/gcc/c-family/cilk.c b/gcc/c-family/cilk.c
> index e75e20c..1167b2b 100644
> --- a/gcc/c-family/cilk.c
> +++ b/gcc/c-family/cilk.c
> @@ -844,6 +844,7 @@ gimplify_cilk_spawn (tree *spawn_p)
> call2, build_empty_stmt (EXPR_LOCATION (call1)));
> append_to_statement_list (spawn_expr, spawn_p);
>
> + free (arg_array);
seems like arg_array could just be made an auto_vec, but I guess this is
fine for now and someone can hopefully remember to clean that up later.
Trev
More information about the Gcc-patches
mailing list