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:
parent
12a18ca543
commit
2f0fc50514
2 changed files with 7 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue