Fix memory leak in tree-chkp.c

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

From-SVN: r230997
This commit is contained in:
Martin Liska 2015-11-27 09:39:00 +01:00 committed by Martin Liska
parent 12a18ca543
commit 2f0fc50514
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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):

View file

@ -2910,6 +2910,8 @@ chkp_make_static_bounds (tree obj)
pointer_bounds_type_node);
}
free (bnd_var_name);
TREE_PUBLIC (bnd_var) = 0;
TREE_USED (bnd_var) = 1;
TREE_READONLY (bnd_var) = 0;