Commit 2f0fc505 by Martin Liska Committed by Martin Liska

Fix memory leak in tree-chkp.c

	* tree-chkp.c (chkp_make_static_bounds): Release buffer
	used for string.

From-SVN: r230997
parent 12a18ca5
2015-11-27 Martin Liska <mliska@suse.cz> 2015-11-27 Martin Liska <mliska@suse.cz>
* tree-chkp.c (chkp_make_static_bounds): Release buffer
used for string.
2015-11-27 Martin Liska <mliska@suse.cz>
* tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
Do not release memory for comp_alias_ddrs. Do not release memory for comp_alias_ddrs.
* tree-vect-loop.c (destroy_loop_vec_info): Release * tree-vect-loop.c (destroy_loop_vec_info): Release
...@@ -2910,6 +2910,8 @@ chkp_make_static_bounds (tree obj) ...@@ -2910,6 +2910,8 @@ chkp_make_static_bounds (tree obj)
pointer_bounds_type_node); pointer_bounds_type_node);
} }
free (bnd_var_name);
TREE_PUBLIC (bnd_var) = 0; TREE_PUBLIC (bnd_var) = 0;
TREE_USED (bnd_var) = 1; TREE_USED (bnd_var) = 1;
TREE_READONLY (bnd_var) = 0; TREE_READONLY (bnd_var) = 0;
......
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