mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* stabsread.c (dbx_lookup_type): Memory leak.
This commit is contained in:
@@ -283,15 +283,12 @@ dbx_lookup_type (int typenums[2])
|
||||
|
||||
if (real_filenum >= N_HEADER_FILES (current_objfile))
|
||||
{
|
||||
struct type *temp_type;
|
||||
struct type **temp_type_p;
|
||||
static struct type **temp_type_p;
|
||||
|
||||
warning (_("GDB internal error: bad real_filenum"));
|
||||
|
||||
error_return:
|
||||
temp_type = init_type (TYPE_CODE_ERROR, 0, 0, NULL, NULL);
|
||||
temp_type_p = (struct type **) xmalloc (sizeof (struct type *));
|
||||
*temp_type_p = temp_type;
|
||||
temp_type_p = &builtin_type_error;
|
||||
return temp_type_p;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user