mirror of git://gcc.gnu.org/git/gcc.git
opts-common.c (generate_canonical_option): Free opt_text it it has been allocated here and not stored anywhere.
* opts-common.c (generate_canonical_option): Free opt_text it it has been allocated here and not stored anywhere. From-SVN: r181282
This commit is contained in:
parent
d3cfd39e65
commit
ca3e7c9ffd
|
@ -1,5 +1,8 @@
|
||||||
2011-11-11 Jakub Jelinek <jakub@redhat.com>
|
2011-11-11 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* opts-common.c (generate_canonical_option): Free opt_text
|
||||||
|
it it has been allocated here and not stored anywhere.
|
||||||
|
|
||||||
* tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
|
* tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
|
||||||
vector.
|
vector.
|
||||||
(vect_create_new_slp_node): Don't allocate node before checking stmt
|
(vect_create_new_slp_node): Don't allocate node before checking stmt
|
||||||
|
|
|
@ -304,6 +304,8 @@ generate_canonical_option (size_t opt_index, const char *arg, int value,
|
||||||
decoded->canonical_option[0] = concat (opt_text, arg, NULL);
|
decoded->canonical_option[0] = concat (opt_text, arg, NULL);
|
||||||
decoded->canonical_option[1] = NULL;
|
decoded->canonical_option[1] = NULL;
|
||||||
decoded->canonical_option_num_elements = 1;
|
decoded->canonical_option_num_elements = 1;
|
||||||
|
if (opt_text != option->opt_text)
|
||||||
|
free (CONST_CAST (char *, opt_text));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue