2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* stabsread.c (dbx_lookup_type): Memory leak.
This commit is contained in:
parent
32107cd542
commit
31e9f6b6be
2 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
||||||
2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
|
2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
|
||||||
|
|
||||||
|
* stabsread.c (dbx_lookup_type): Memory leak.
|
||||||
|
|
||||||
* event-loop.c (delete_async_signal_handler): Move pointer null
|
* event-loop.c (delete_async_signal_handler): Move pointer null
|
||||||
test to before pointer dereference.
|
test to before pointer dereference.
|
||||||
|
|
||||||
|
|
|
@ -283,15 +283,12 @@ dbx_lookup_type (int typenums[2])
|
||||||
|
|
||||||
if (real_filenum >= N_HEADER_FILES (current_objfile))
|
if (real_filenum >= N_HEADER_FILES (current_objfile))
|
||||||
{
|
{
|
||||||
struct type *temp_type;
|
static struct type **temp_type_p;
|
||||||
struct type **temp_type_p;
|
|
||||||
|
|
||||||
warning (_("GDB internal error: bad real_filenum"));
|
warning (_("GDB internal error: bad real_filenum"));
|
||||||
|
|
||||||
error_return:
|
error_return:
|
||||||
temp_type = init_type (TYPE_CODE_ERROR, 0, 0, NULL, NULL);
|
temp_type_p = &builtin_type_error;
|
||||||
temp_type_p = (struct type **) xmalloc (sizeof (struct type *));
|
|
||||||
*temp_type_p = temp_type;
|
|
||||||
return temp_type_p;
|
return temp_type_p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue