* ada-lang.c (ada_make_symbol_completion_list): Replace malloc
with xmalloc.
2011-03-01 Michael Snyder <msnyder@vmware.com>
+ * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
+ with xmalloc.
+
* ada-lang.c (aggregate_assign_others): Rename inner scope variable
which shadows function parameter.
{
const size_t completions_size =
VEC_length (char_ptr, completions) * sizeof (char *);
- char **result = malloc (completions_size);
+ char **result = xmalloc (completions_size);
memcpy (result, VEC_address (char_ptr, completions), completions_size);