diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-01 23:07:40 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-01 23:07:40 +0000 |
commit | dc19db01c117e015c4656cfb4aa78bb9acaf8ba8 (patch) | |
tree | e737eacb03216e72a5d1623bba38d680e9df60f4 /gdb/ada-lang.c | |
parent | 75c362b84ef8a7ff5dd360ea6a377c5d731b899a (diff) | |
download | gdb-dc19db01c117e015c4656cfb4aa78bb9acaf8ba8.zip gdb-dc19db01c117e015c4656cfb4aa78bb9acaf8ba8.tar.gz gdb-dc19db01c117e015c4656cfb4aa78bb9acaf8ba8.tar.bz2 |
2011-03-01 Michael Snyder <msnyder@vmware.com>
* ada-lang.c (ada_make_symbol_completion_list): Replace malloc
with xmalloc.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 55b05f1..d0a1014 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5634,7 +5634,7 @@ ada_make_symbol_completion_list (char *text0, char *word) { 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); |