mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-23 06:04:21 +08:00
2009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
* objc-lang.c (find_methods): Plug a small memory leak.
This commit is contained in:
@ -1259,7 +1259,8 @@ find_methods (struct symtab *symtab, char type,
|
||||
}
|
||||
if (objc_csym == NULL)
|
||||
{
|
||||
objc_csym = xmalloc (sizeof (*objc_csym));
|
||||
objc_csym = obstack_alloc (&objfile->objfile_obstack,
|
||||
sizeof (*objc_csym));
|
||||
*objc_csym = objfile_csym;
|
||||
set_objfile_data (objfile, objc_objfile_data, objc_csym);
|
||||
}
|
||||
|
Reference in New Issue
Block a user