2009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
* objc-lang.c (find_methods): Plug a small memory leak.
This commit is contained in:
parent
1a816a8780
commit
6342b74acd
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue